-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Redis broker pool size #258
Comments
Hello, @anhnguyensgu! There are 3 modes in current Redis broker implementation:
For cases 1 and 2 pool size does not really matter - we utilize Redis pipelining and only several active connections from Centrifuge to Redis are active at any point of time. I think pool size only matters in Redis Cluster case - where we are using pool to issue most of commands except I think in the near future Centrifuge Redis implementation may migrate from So I think we should not expose pool size at this point. Do you have issues with current default pool size (which I think may happen only in Redis Cluster scenario)? If yes - we can address it more precisely, possibly looking how |
Thanks for your support. At this time, I have no issues with the pool, I will let you know if having any. |
We migrated to rueidis library in #262 – where connection pool does not have much sense anymore, Centrifuge will use pipelining over several connections for all operations. So I suppose this issue can be closed. |
The draft of blog post about rueidis migration: centrifugal/centrifugal.dev#18 - @anhnguyensgu probably you will be interested to check it |
I have set up the package to handle the real-time message and it works perfectly. However, I am so curious about the pool size configuration for Redis broker. After taking a look at the code Redis_shard.go, I found that Redis broker takes the default pool size 128.
Do we have a way to configure the pool size?
The text was updated successfully, but these errors were encountered: