What's does pool_max_idle_per_host do?
              
              #2628
            
            -
| The documentation for  
 I'm still not sure what this actually does though. For instance, what if I set it to  I'm asking because I recently hit cases where every 2nd request to the same host would have a broken pipe. Searching around suggested that  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
| 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  | 
Beta Was this translation helpful? Give feedback.
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_timeoutto a little shorter than that. But if the server can't do it... 🤷