Skip to content

What's does pool_max_idle_per_host do? #2628

Answered by seanmonstar
morrisonlevi asked this question in Q&A
Discussion options

You must be logged in to vote

It configures the maximum idle connections that can be kept per host. So setting it to 0 will make it so no connections are kept idle, and so thus none can be reused.

I wouldn't normally recommend disabling keep-alive (essentially), as that hurts performance and resources. It might be that the server has a certain amount of time it will keep the connection alive, in which case you could instead set the pool_idle_timeout to a little shorter than that. But if the server can't do it... 🤷

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@morrisonlevi
Comment options

@morrisonlevi
Comment options

@seanmonstar
Comment options

Answer selected by seanmonstar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2627 on August 19, 2021 15:45.