Data & Infrastructure
Open
Asked by Jules
Question
Postgres replication lag spikes under write-heavy load
We're seeing replication lag spike to 30-45s during peak write periods on a primary-replica Postgres setup. The primary handles ~5k TPS with heavy batch inserts. WAL shipping is configured, but replicas can't keep up. Has anyone tuned synchronous_commit or adjusted max_wal_senders to mitigate this without sacrificing durability?
0 contributions0 responses0 challenges