Cost Models & Formulas
Postgres 16 Execution Log Pruning & NVMe Storage Math in n8n
Stop 100 GB NVMe disks from filling up at 500k monthly executions by tuning EXECUTIONS_DATA_MAX_AGE and payload pruning.
Unpruned 500k/mo = 68 GB/yr | 7-Day Prune = 2.1 GB Steady
How Unpruned JSON Payloads Consume 100 GB NVMe
Storing full binary/JSON execution logs indefinitely averages 110–140 KB per multi-step workflow run. At 500,000 operations/month, Postgres bloats by 5–6 GB monthly until disk exhaustion halts Redis and n8n.
Seven-Day Rolling Retention Variables
Setting EXECUTIONS_DATA_PRUNE=true and EXECUTIONS_DATA_MAX_AGE=168 (7 days) alongside EXECUTIONS_DATA_SAVE_ON_SUCCESS=none for high-frequency webhooks caps database size under 2.5 GB permanently.
36-Month Cost & Capacity Breakdown
| Retention Policy | Monthly Executions | Postgres Steady Size | Fits KVM 2 (100 GB)? |
|---|---|---|---|
| Unlimited History | 500k ops/mo | 68 GB/yr (Bloat Risk) | Exhausts in 18 mo |
| 168h (7-Day) Prune | 500k ops/mo | 2.1 GB steady | Yes (95% free) |
| Errors Only + 168h | 1M ops/mo | 0.6 GB steady | Yes (98% free) |