Skip to content
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

min_size priority #48

Closed
alu opened this issue Dec 18, 2017 · 2 comments
Closed

min_size priority #48

alu opened this issue Dec 18, 2017 · 2 comments

Comments

@alu
Copy link

alu commented Dec 18, 2017

Hi.

min_idle and max_lifetime or idle_timeout are how prioritize?

Q: Set to 10 min_idle and set 10 secs to max_lifetime and then after 10 secs...
A1: kill 10 connections, and then create new connections for keep min_idle
A2: ignore max_lifetime for keep min_idle

Q: Set to 10 min_idle and set 10 secs to idle_timeout and then after 10 secs all connections are idle...
A1: kill 10 connections, and then create new connections for keep min_idle
A2: ignore idle_timeout for keep min_idle

Which answer is correct? Or another?

@sfackler
Copy link
Owner

A1 is answer to both of your questions. The timeouts will always cause connections to be closed, and the pool will then make new ones to meet min_size.

@alu
Copy link
Author

alu commented Dec 19, 2017

Thank you, I understood well!

@alu alu closed this as completed Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants