Skip to content
Open
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
6 changes: 4 additions & 2 deletions docs/guides/benchmarking.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,10 @@ what to set before the run:
timeout. Three misses of the liveness probe (`pg_isready`) restart
postgres mid-run; three misses of the readiness probe (`nc`) drop the pod
from the Service, and ateapi loses its connections without a restart. Give
both `timeoutSeconds: 5` and `failureThreshold: 6`, and give the postgres
container CPU and memory requests sized for the run: on a saturated node
the readiness probe `timeoutSeconds: 5` and the liveness probe
`timeoutSeconds: 10`, so a slow database leaves the Service before it is
killed, both with `failureThreshold: 6`, and give the postgres container
CPU and memory requests sized for the run: on a saturated node
the request is its share of the CPU, and a starved postgres is what misses
the probes.
* **Parking budget.** `--parked-request-budget` (default `5s`) has to cover a
Expand Down
4 changes: 4 additions & 0 deletions manifests/ate-install/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ spec:
- nc -z 127.0.0.1 5432
initialDelaySeconds: 2
periodSeconds: 2
timeoutSeconds: 5
failureThreshold: 6
livenessProbe:
exec:
command:
Expand All @@ -191,6 +193,8 @@ spec:
- pg_isready -U "${POSTGRES_USER}" -d postgres
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 6
args:
- -c
- config_file=/etc/postgresql/postgresql.conf
Expand Down
Loading