You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the Crunchydata Postgres operator using the helm chart and I'm using the NFS file system storage as PVC with 200GB data. When I run kubectl get pods, the output shows that 1 instance has stopped working out of 4.
kubectl get pods | grep -E "READY|postgres-instance"
NAME READY STATUS RESTARTS AGE
abc-postgres-instance1-c7ck-0 3/4 Running 0 32d
The error that I'm encountering is:
2024-07-12 21:20:21,317 INFO: stderr=2024-07-12 21:20:21.317 UTC [2615762] FATAL: could not write lock file "postmaster.pid": No space left on device
Upon further investigation, I found that the /pgdata/pg16_wal is using up all the space.
When I run kubectl exec -it dravoka-postgres-instance1-c7ck-0 -- bin/bash and then df -h, I get the following output:
When we see the WAL fill up like this, it is almost always due to backups not being run frequently enough. When a backup runs, it captures the current state of the database, allowing postgres to clear out the WAL files as they are no longer needed.
I recommend that you set up a schedule for your backups, or if you already have a schedule set, try increasing the frequency with which you run your backups so that the WAL can be regularly flushed out. Here are the docs for all things backups:
If you need further assistance, I recommend that you join our Discord group and ask questions there as it is a more active forum for the postgres-operator community.
I have installed the Crunchydata Postgres operator using the helm chart and I'm using the NFS file system storage as PVC with 200GB data. When I run
kubectl get pods
, the output shows that 1 instance has stopped working out of 4.The error that I'm encountering is:
Upon further investigation, I found that the
/pgdata/pg16_wal
is using up all the space.When I run
kubectl exec -it dravoka-postgres-instance1-c7ck-0 -- bin/bash
and thendf -h
, I get the following output:Is there a way to configure the WAL size limit and archive the old WAL files while also deleting the old archived files?
The text was updated successfully, but these errors were encountered: