Increasing the PostgreSQL archive_timeout
on Kubernetes
Increase the archive_timeout
to 3600
(seconds) so that
accumulated wal files do not cause a disk-space issue during a network
outage.
About this task
PostgreSQL sends its wal archives to the backup location (S3 or local PVC)
whenever the configured archive_timeout
period elapses. By default, the
archive_timeout
is set to 60 seconds. During a network outage, the files cannot be
transferred and instead accumulate on the current server, and could cause a disk-space issue.
Increasing the archive_timeout
value helps to mitigate this issue by creating
archive files less frequently.
For information on tracking the Postgres disk space, see Monitoring Postgres disk usage.
Complete the following steps to increase the PostgreSQL archive_timeout
value.