Skip to content

Commit f3fd243

Browse files
jaggederestlevkk
andauthored
Suggest keeping connections smaller than max connections of backend (#32)
Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com>
1 parent 819708d commit f3fd243

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/configuration/pgdog.toml/databases.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ Default: **`0`**
8484

8585
Overrides the [`default_pool_size`](general.md#default_pool_size) setting. All connection pools for this database will open at most this many connections to Postgres.
8686

87+
!!! note "Recommendation"
88+
We strongly recommend keeping this value well below the supported connections of the backend database(s) to allow connections for maintenance in high load scenarios.
89+
8790
### `statement_timeout`
8891

8992
This setting configures the `statement_timeout` connection parameter on all connections to Postgres for this database.

docs/configuration/pgdog.toml/general.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Default: **`0`** (current thread runtime)
3838

3939
Default maximum number of server connections per database pool. The pooler will not open more than this many PostgreSQL database connections when serving clients.
4040

41+
!!! note "Recommendation"
42+
We strongly recommend keeping this value well below the supported connections of the backend database(s) to allow connections for maintenance in high load scenarios.
43+
4144
Default: **`10`**
4245

4346
### `min_pool_size`

0 commit comments

Comments
 (0)