VCF Automation database backup fails with OOMKilled (Exit Code 137) in walg container
search cancel

VCF Automation database backup fails with OOMKilled (Exit Code 137) in walg container

book

Article ID: 451496

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite) VMware vSphere ESXi

Issue/Introduction

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:

  • One of the vcfapostgres pods shows recent restarts in the output of kubectl get pods -n prelude | grep vcfapostgres .
  • The kubectl describe pod vcfapostgres-0 -n prelude output for that pod shows reason: OOMKilled and exitCode: 137.
  • The describe output for that pod confirms that the walg container limit is set to 768M
    limits: cpu: "1" memory: 768Mi
  • Backup failures occur consistently during the tar bundling phase ("Starting part 2"), where memory consumption spikes.
  • This issue is also observed during the VCFA upgrade when the vcfa database backup step is executed.
  • Collected support bundles around this issue may be missing directories, such as the services-logs, due to a OOMKill in the Seaweed Filer.

Environment

VCF Automation 9.x

Cause

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.

Resolution

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.

  1. 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"
        }
      }
    }'
     
  2. Monitor the deployment. Once the pods are stable and running with the new limit, retry the task from the VCF UI.:
    kubectl wait --for=condition=Ready=True pd vmsp-platform -n vmsp-platform --timeout=10m