-
Notifications
You must be signed in to change notification settings - Fork 61
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
DynamicRedisPool
blocked on wait_for_connect
#26
Comments
Which fred version are you using? There was a bug related to this in versions < 4.2.2. In the meantime I'll try your repro and see if I can come up with anything. Also, out of curiosity, what is your use case for the dynamic pool? I spoke to a number of folks recently about this and heard pretty consistent feedback that the dynamic pool is not really useful due to not implementing |
Hi @aembke. Thanks for getting back to me so quickly. The version of fred is 4.3.1 Honestly I am in just experimenting and was just testing it out. For more context I am currently working on an actix4 web server using a mobc pool to manage my redis connections but the provided redis implementation was a little out of date. When I went looking around and found fred and saw it had some pooling capabilities built in so I thought it was worth a dive. My use case basically requires a pool that will maintain a number of connections that can be used by different http handlers so that each one doesn't have to create a new client. A key requirement being that this server will be long running so reconnecting dropped connections should be smooth. From my understanding all of this is covered by the static pool so will likely go with that anyway. Was just investigating the other pool as the runtime scaling sounded interesting :). |
Ah ok yeah that makes sense. I've seen a few cases where folks see the dynamic pool, they like the flexibility to scale it up or down, but when they go to actually use it they run into a bunch of ergonomics issues due to the lack of the While I don't want to leave any bugs in versions 4.x I'm about a week away from 5.0.0 coming out, so I might just table this if you're not actively using it. I still need to figure out if it's worth leaving the |
@JamesPatrickGill it turns out this was just a broken example. When you call |
Thank you for getting back to me, I should have noticed that! |
Description
I am attempting to use a dynamic pool in an actix web app (btw I am using a v4 beta so am on the correct tokio version) and my code hangs on
wat_for_connect
consistently. I know similar things have happened previously but as those were closed issues I started this one.Reproduction
To reproduce I am able to just run the code from the example here https://github.com/aembke/fred.rs/blob/main/examples/dynamic_pool.rs
Here is my app main
Hope this helps and please ask any questions.
System
MacOS, Redis via Docker, Rust 1.57
The text was updated successfully, but these errors were encountered: