-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support configuration of minimum idle connections #141
Comments
You can use I wonder whether you could simply call We have seen recently a number of reports (e.g. #140) that the connection pool connections deplete due to some improper connection releases. Mostly FYI, but that might play into this report as well. |
Hi, |
[resolves #141] Signed-off-by: Mark Paluch <[email protected]>
That's in place now. InitialSize is somewhat overlapping, if both values are configured, we're going to use the greater one. |
Currently, after |
Hi all,
Recently, my team has come across an issue where number of connections in the connection pool drops to 0 after some time that the pool is not used.
We want to be able to set some property in r2dbc-pool that allows us to keep a minimum number of idle connections regardless of the usage of the pool.
After some searching, I found that the apache DBCP library offers minIdle setting:
https://commons.apache.org/proper/commons-dbcp/configuration.html
minIdle: The minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none.
Unfortunately, in r2dbc-pool, I haven't found a similar param. The following two params are similar but look like they would change the lifecycle behavior of the pool itself:
backgroundEvictionInterval & maxIdleTime
They're not quite what we're after. Is there a solution/hack that I can do that will allow me to set the minimum number of idle connections I want to keep at all times that I am missing?
If not, are there any plans that this will be added in the future?
Thank you for response,
Mostafa
The text was updated successfully, but these errors were encountered: