Database backups for VCF Automation (VCFA) fail during the backup process. Logs indicate that the backup script fails with exit code -9 (SIGKILL). Upon inspecting the pod status, the walg sidecar container is found to be in an OOMKilled state (Exit Code 137), indicating that the process is exceeding its allocated memory limit.
Symptoms:
kubectl get pods -n prelude | grep vcfapostgres .kubectl describe pod vcfapostgres-0 -n prelude output for that pod shows reason: OOMKilled and exitCode: 137.walg container limit is set to 768Mlimits: cpu: "1" memory: 768MiVCF Automation 9.x
The default memory limit of 768Mi assigned to the walg sidecar container is insufficient for the tar bundling operations performed during the database backup, specifically when the database size or the volume of logs being processed leads to memory exhaustion. This results in the OOMKiller terminating the container.
This is a known issue affecting VCF Automation, and will be addressed in a future release.
As a workaround, increase the postgresBackupSidecarMemoryLimit and the Seaweed Filer Memory Limit in the PackageDeployment for vmsp-platform.
Execute the following command to edit the vmsp-platform deployment:
kubectl patch pd vmsp-platform -n vmsp-platform --type=merge -p '{
"spec": {
"values": {
"profiles": {"overrides": {"seaweedfs": {"filer": {"limits": {"memory": "4Gi"}}}}},
"postgresBackupSidecarMemoryLimit": "2Gi"
}
}
}'kubectl wait --for=condition=Ready=True pd vmsp-platform -n vmsp-platform --timeout=10m