VCF Automation may experience excessive growth in the PostgreSQL audit_trail table, causing the database partition to reach 100% disk usage. This issue is driven by high volume of token creation events, leading to excessive growth in the audit trail database.
VCF Automation 9.0.x
VCF Automation 9.1.x
Internal services perform frequent token creations. In version 9.0, these specific audit events were not excluded from the audit trail, resulting in a large number of entries being stored in the database.
To mitigate database growth, you can reduce the default retention policy for audit events using the Cell Management Tool (CMT).
Procedure
Warning: The following steps involve modifying configuration settings via the command line. Ensure you have a valid database backup before proceeding.
kubectl exec -i -t -n prelude tenant-manager-0 -- bash
cd /opt/vmware/vcloud-director/bin
./cell-management-tool
manage-config -n com.vmware.vcloud.audittrail.history.days -v 7
manage-config -n com.vmware.vcloud.audittrail.history.days -l