Operations, Security & Reliability

Capacity, Maintenance, and Data Lifecycle

Capacity engineering forecasts data and workload growth against measured ceilings, while maintenance and lifecycle policies keep statistics, versions, indexes, partitions, and retained data within safe operational and legal bounds.
  • Forecast demand and each constraining resource.
  • Connections are a workload ceiling, not capacity by themselves.
  • MVCC creates maintenance debt.
  • Partitions help only with an explicit lifecycle or access boundary.
  • Delete, archive, and legal retention are different states.
  • Maintenance changes the workload.
Capacity model
DimensionMeasure and forecastTrigger / response
Primary data/indexesbytes/day, rows/day, amplification, skewstorage and maintenance lead time
Compute/memoryCPU/run queue, working set, cache misses, spillsoptimize/admit/scale before tail collapse
Connections/workactive, waiting, transaction age, service timepool budget and workload shedding
Logs/replicationbytes/s, retained bytes, send/apply ratebandwidth/storage headroom and lag policy
Backups/restorescopy/replay/validation rate vs sizeobjective breach forecast; redesign chain
Maintenancedead space, stats age, transaction age, index healthroutine threshold plus emergency margin
Lifecycle states for commerce data
Maintenance safety envelope
preconditions: replica/archive/backup healthy; headroom available; no conflicting migration
limits: statement/lock timeout, batch rows/bytes, WAL rate, IOPS, lag, runtime
observe: user latency/errors, waits, dead space, stats, logs, replica/archive backlog
pause when: objective burn, blocker age, lag/backlog or storage threshold exceeded
verify: object validity, statistics, query plans, recovered space, backup/PITR chain
rollback/recovery: documented per operation; mass deletes are not assumed reversible