Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/configuration/pgdog.toml/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ Overrides the [`default_pool_size`](general.md#default_pool_size) setting. All c
!!! note "Recommendation"
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.

### `pooler_mode`

Overrides the [`pooler_mode`](general.md#pooler_mode) setting. Connections to this database will use this connection pool mode.

### `min_pool_size`

Overrides the [`min_pool_size`](general.md#min_pool_size) setting. The connection pool will maintain at minimum this many connections.

### `statement_timeout`

This setting configures the `statement_timeout` connection parameter on all connections to Postgres for this database.
Expand Down
14 changes: 14 additions & 0 deletions docs/configuration/pgdog.toml/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ Maximum amount of time new clients have to complete authentication. Clients that

Default: **`60_000`** (60s)

### `server_lifetime`

Maximum amount of time a server connection is allowed to exist. Any connections exceeding this limit will be closed once they are checked back into the pool.

Default: **`86400000`** (24h)

## Load balancer

### `load_balancing_strategy`
Expand Down Expand Up @@ -401,3 +407,11 @@ Default: **`true`** (enabled)
How often to calculate averages shown in `SHOW STATS` [admin](../../administration/index.md) command and the [Prometheus](../../features/metrics.md) metrics.

Default: **`15_000`** (15s)

## DNS

### `dns_ttl`

Overrides the TTL set on DNS records received from DNS servers. Allows for faster failover when the primary/replica hostnames are changed by the database hosting provider.

Default: **none** (disabled)
2 changes: 1 addition & 1 deletion docs/configuration/pgdog.toml/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To be consistent with the rest of PgDog documentation, units of time are in mill
!!! note "Support for keep-alives"
Not all networks support or play well with TCP keep-alives. If you see an increased number of dropped connections after enabling these settings, you may have to disable them.

### `keepalives`
### `keepalive`

Enable TCP keep-alives. When enabled, idle client & server connections will send keep-alive packets to make sure the TCP connections are healthy.

Expand Down
1 change: 1 addition & 0 deletions docs/migrating-to-pgdog/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Migrating to PgDog
Loading
Loading