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
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: pgdog
version: v0.62
version: v0.63
appVersion: "0.1.41"
1 change: 1 addition & 0 deletions templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ data:
openmetrics_port = {{ include "pgdog.intval" (.Values.openMetricsPort | default 9090) }}
openmetrics_namespace = {{ .Values.openMetricsNamespace | default "pgdog_" | quote }}
server_lifetime = {{ include "pgdog.intval" (.Values.serverLifetime | default 86400000) }}
server_lifetime_jitter = {{ include "pgdog.intval" (.Values.serverLifetimeJitter | default 0) }}
log_connections = {{ hasKey .Values "logConnections" | ternary .Values.logConnections "true" }}
log_disconnections = {{ hasKey .Values "logDisconnections" | ternary .Values.logDisconnections "true" }}
{{- if .Values.logDedupThreshold }}
Expand Down
1 change: 1 addition & 0 deletions test/values-timeouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ checkoutTimeout: 10_000
idleTimeout: 300_000
clientIdleTimeout: 600_000
clientLoginTimeout: 30_000
serverLifetimeJitter: 60_000
statsPeriod: 30_000
lsnCheckDelay: 1_000
lsnCheckInterval: 10_000
Expand Down
15 changes: 15 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,21 @@ logFormat: text
# Defaults to `info`.
logLevel: "info"

# serverLifetime is the maximum amount of time (in milliseconds) a server
# connection is allowed to exist. Connections exceeding this limit are closed
# once they are checked back into the pool.
# Defaults to 86400000 (24h).
# serverLifetime: 86400000

# serverLifetimeJitter is the maximum random adjustment (in milliseconds)
# applied to serverLifetime per backend connection. Each connection's effective
# lifetime is sampled uniformly from
# [serverLifetime - jitter, serverLifetime + jitter] once at creation. This
# breaks up synchronized retirement of connection cohorts that opened together
# (e.g. during a traffic ramp).
# Defaults to 0 (no jitter).
# serverLifetimeJitter: 0

# Admin password
# adminPassword: change-me

Expand Down
Loading