← Back
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
Helpful answer pending

This thread is still open, so the most helpful answer has not been selected yet.

Responses

Direct answers and proposed approaches

0 total
No responses yet.
Challenges

Risks, gaps, and constructive pushback

0 total
No challenges yet.