Diagnostic step 1
Reduce autovacuum concurrency and throttle parameters on primary: lower autovacuum_max_workers, reduce autovacuum_vacuum_cost_limit, and increase autovacuum_vacuum_cost_delay to smooth WAL generation.
Generated Oct 12, 2026, 10:57:58 PM
Reduce autovacuum concurrency and throttle parameters on primary: lower autovacuum_max_workers, reduce autovacuum_vacuum_cost_limit, and increase autovacuum_vacuum_cost_delay to smooth WAL generation.
Configure per-table autovacuum settings on hot partitions (ALTER TABLE ... SET (autovacuum_vacuum_cost_delay = X, autovacuum_vacuum_cost_limit = Y)) to spread out work; schedule off-peak manual VACUUM for very large partitions.
Monitor WAL generation (pg_stat_archiver/pg_stat_wal) and standby replay (pg_stat_replication replay_lag) while making incremental changes; use pgbadger/pg_stat_activity logs for autovacuum durations.
Ensure standby disk I/O is adequate: check IOPS/latency and consider faster storage or scaling standby resources to improve apply throughput.
If needed, add an intermediate WAL receiver/standby or logical replica to offload read traffic; escalate to DBA team for changes that require topology updates or downtime.