Add checkout_failure_limit config/feature

This commit is contained in:
Mostafa
2025-02-27 07:17:10 -06:00
parent f8e2fcd0ed
commit 147eba52c0
6 changed files with 162 additions and 1 deletions

View File

@@ -298,6 +298,19 @@ Load balancing mode
`random` selects the server at random
`loc` selects the server with the least outstanding busy connections
### checkout_failure_limit
```
path: pools.<pool_name>.checkout_failure_limit
default: 0 (disabled)
```
`Maximum number of checkout failures a client is allowed before it
gets disconnected. This is needed to prevent persistent client/server
imbalance in high availability setups where multiple PgCat instances are placed
behind a single load balancer. If for any reason a client lands on a PgCat instance that has
a large number of connected clients, it might get stuck in perpetual checkout failure loop especially
in session mode
`
### default_role
```
path: pools.<pool_name>.default_role