KMS & Stack Tuning
Audit Log Retention (90-730 Days) & Autovacuum Freeze Control
Calculate exact gigabytes per month for secret access audit logs and configure autovacuum so table bloat never stalls reads.
~1.44M Rows/Day per 1,000 req/min · Monthly Pruning · NVMe
Cold Object Offload Above 365 Days
If your compliance policy mandates 730-day retention above 2,500 req/min, archive monthly partitions older than 180 days to encrypted object storage rather than inflating live NVMe.
Autovacuum Scale Factor
Lower autovacuum_vacuum_scale_factor to 0.02 on high-append audit tables so dead tuples are reclaimed continuously rather than in massive I/O bursts.
Measured Thresholds & KMS Configuration
| Peak Pull Rate | 90-Day Audit Disk | 730-Day Audit Disk |
|---|---|---|
| 250 req/min | 4.6 GB | 36.8 GB |
| 1,200 req/min | 21.8 GB | 176.4 GB |
| 3,500 req/min | 63.5 GB | 514.5 GB (Offload Required) |