4a730bb34b
This patch fixes an issue with Postgres HA where the PVC which stores the database was filling up with WAL records and not deleting them due to some misconfigurations with Postgres. Once the PVC would fill up, replication would fail across the node and the database would not be able to start, crashing the system. Specifically, archive_mode was turned on, but was not supplied with a function through which to archive the logs. When WAL archiving is turned on, old WAL files cannot be removed until the system has archived them first. However, since we never told the system how to archive the files, it would repeatedly fail so the WAL files would never be cleaned up. Also in this patch are some small house keeping items: - Lowered the wal_keep_segments drastically so Postgres can't keep as many WAL segments around to minimize the chance of PVC fill issues - Turned the wal_level from 'logical' to 'hot_standby' to keep it consistent with the fact that Patroni uses streaming replication and not logical replication - Removed the autovaccuum configurations as they are not needed Change-Id: Id48c3ee9976823b2bdb4395a029fe75476bdaa62 |
||
---|---|---|
.. | ||
templates | ||
.helmignore | ||
Chart.yaml | ||
requirements.yaml | ||
values.yaml |