Tune sanitizer PostgreSQL probes
This commit is contained in:
parent
2ea18c8183
commit
6a8a43960c
@ -17,6 +17,9 @@ spec:
|
|||||||
tag: "13.0.9"
|
tag: "13.0.9"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
postgresqlSharedPreloadLibraries: "timescaledb,pg_stat_statements"
|
postgresqlSharedPreloadLibraries: "timescaledb,pg_stat_statements"
|
||||||
|
shmVolume:
|
||||||
|
enabled: true
|
||||||
|
sizeLimit: 1Gi
|
||||||
primary:
|
primary:
|
||||||
containerSecurityContext:
|
containerSecurityContext:
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
@ -25,18 +28,61 @@ spec:
|
|||||||
fsync = off
|
fsync = off
|
||||||
full_page_writes = off
|
full_page_writes = off
|
||||||
synchronous_commit = off
|
synchronous_commit = off
|
||||||
shared_buffers = 8GB
|
shared_buffers = 6GB
|
||||||
effective_cache_size = 18GB
|
effective_cache_size = 18GB
|
||||||
work_mem = 256MB
|
work_mem = 64MB
|
||||||
maintenance_work_mem = 2GB
|
maintenance_work_mem = 1536MB
|
||||||
temp_buffers = 256MB
|
temp_buffers = 64MB
|
||||||
max_wal_size = 32GB
|
max_connections = 60
|
||||||
|
autovacuum = off
|
||||||
|
jit = off
|
||||||
|
max_parallel_workers = 4
|
||||||
|
max_parallel_maintenance_workers = 2
|
||||||
|
max_wal_size = 16GB
|
||||||
checkpoint_timeout = 1h
|
checkpoint_timeout = 1h
|
||||||
checkpoint_completion_target = 0.9
|
checkpoint_completion_target = 0.9
|
||||||
wal_level = minimal
|
wal_level = minimal
|
||||||
max_wal_senders = 0
|
max_wal_senders = 0
|
||||||
archive_mode = off
|
archive_mode = off
|
||||||
random_page_cost = 1.1
|
random_page_cost = 1.1
|
||||||
|
terminationGracePeriodSeconds: 3600
|
||||||
|
customStartupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
pid_file="${PGDATA:-/bitnami/postgresql/data}/postmaster.pid"
|
||||||
|
test -s "$pid_file" && kill -0 "$(head -n 1 "$pid_file")"
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 720
|
||||||
|
customLivenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
pid_file="${PGDATA:-/bitnami/postgresql/data}/postmaster.pid"
|
||||||
|
test -s "$pid_file" && kill -0 "$(head -n 1 "$pid_file")"
|
||||||
|
initialDelaySeconds: 120
|
||||||
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 20
|
||||||
|
customReadinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- exec pg_isready -U "postgres" -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 6
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "6"
|
cpu: "6"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user