-
Notifications
You must be signed in to change notification settings - Fork 16
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
Eviction policy for idle connection pools #23
Comments
You can get all current pools by calling For example:
|
Thank you, this is useful! |
This is definitely a good idea and a requirement for your use case. Currently I don't have the bandwidth to work on it, but the PR is always welcome. |
Is there a way to detect last usage time of a pool from |
None at the moment.
This is good point and needs to be fixed for the general use case. Can you create separate issue for this? |
Created #24 |
At what point connection pool
pool_group:host:port
is stopped if there is no activity?We have a server application where connection targets keep changing. I.e. we would make a lot of calls to
host1:port1
(with pool size configured to 1000 connections) and then we will never call it again. Then we'll callhost2:port2
a lot, and will not call it ever anymore too, etc.I suspect in the current implementation these connection pools will just keep running forever until Erlang reaches max number of processes and starts throwing
system_limit
errors.Is this correct or maybe I just cannot find the logic that stops these pools in the code?
The text was updated successfully, but these errors were encountered: