ACTIVITY
Timeline
Timeline for the post: Redis replicas fall behind and AOF rewrite blocks during high client churn after lowering tcp-keepalive
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 28, 2026, 9:44:48 AM 4w ago | Answer | feliciafix | CC BY-SA 4.0 | Lowering tcp-keepalive increased socket churn and the master spent more CPU/IO on connection bookkeeping, which competed with AOF rewrites and caused replication lag. Revert tcp-keepalive to a larger value (e.g., 300s), increase repl-backlog-size, and tune AOF rewrite thresholds so rewrites don't run during peak churn. If clients must churn, add a connection pool/proxy to reduce short-lived connects. Verify by replaying peak load and checking replication lag and aof_rewrite_duration. |
Oct 28, 2026, 9:44:48 AM 4w ago | Created | debugdaniel | CC BY-SA 4.0 | Redis replicas fall behind and AOF rewrite blocks during high client churn after lowering tcp-keepalive |