-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add min_size configuration option #245
Comments
I'm planning to add a If With that option you could just set |
Just want to add my vote for this. For context, my use case is slightly different than the typical database connection. The "pool" is a connection of R processes which may or may not have a large cost for spin up. So if one knows that the cost of start up is expensive (e.g 10 - 20 second load time and 200mb in memory) it would be great to say "i want to have at least 3 connections waiting at all time." |
Is there a way to effectively build a |
Retain is only for removing objects from the pool. There is currently no way to add new objects to the pool manually. As of now objects are always created on demand. btw. regarding your code I'd rename |
Fair point! Lol, thanks! Is there a way to use the |
As of now. No. There is no |
I wrote a pool for proxy connections using deadpool, I just want to know if I could make sure that no individual connection is used more often than - say - every 5 seconds. in other words - each object gets X amount of rest before being reused. I'm trying to do it but I'm failing miserably :D
The text was updated successfully, but these errors were encountered: