New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Redis API, too many subscriber timeout #27209
Comments
/cc @cescoffier, @gsmet, @machi1990 |
Hello, after even more debugging I found out, that the issue is having too many listeners, or at list the issue appears when i have 5 or more listeners |
Better provide a full reproducer in the form of a small Maven project. |
yes will do 👍 |
Hello, https://github.com/Plawn/redis-quarkus-reproducer here is the main test file To test: just mvn quarkus:dev When having too many listener there is a timeout More over, the listener can't start without the @startup annotation |
This is kind of expected. Subscribers need to hold a connection to the Redis server (that's the Redis protocol). However, by default, the connection pool is set to have only six connections. So you should restructure your application to reduce the number of connections (use a single subscriber listening to multiple keys) or increase the number of connections:
|
Ok I see, in the redis documentation it stated that up to 10 000 listeners could listen to the same channel, so I did not expect this kind of issue. Edit: Changing the pool size solved my issue, but I still wonder why I only works at startup |
Can you give more details about this startup issue? |
Hello ! Yes, If I don't mark the bean creating the redis subscriber with @startup (like in the example), I will have a vertx null context exception. |
Can you provide a reproducer? The Redis data source requires Vert.x but the Vert.x instance is created quite early in the process. |
I believe I reproduced it:
|
(and it's likely a bug) |
Yes I exactly got this error ! |
Describe the bug
edited -> see reproducer
Expected behavior
We are subscribed
Actual behavior
Error
How to Reproduce?
Create a quarkus app with version 2.11.1.Final
Use the given files
Output of
uname -a
orver
No response
Output of
java -version
11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven 3.8
Additional information
No response
The text was updated successfully, but these errors were encountered: