fix(postgres): 放宽跨地域 WAL 连接抖动窗口

将生产 WAL sender/receiver timeout 从 CNPG 隐式 5 秒显式调整为 30 秒,避免短时控制面或 Pod 网络停顿反复拆除复制流并触发异步降级。保留 preferred 同步策略,防止副本不可达时冻结全部写入。\n\n影响:仅修改生产 CNPG 参数、发布门禁和运维说明,不改变应用镜像和迁移。仍需通过同步复制、六向链路与验收硬门禁。\n\n验证:kubectl kustomize、bash -n、ShellCheck、manual-release-test。
This commit is contained in:
2026-08-02 00:10:25 +08:00
parent a4046c2b81
commit ac8d6dcf45
3 changed files with 10 additions and 1 deletions
@@ -128,6 +128,13 @@ spec:
shared_buffers: 512MB
wal_compression: "on"
wal_keep_size: 1GB
# CNPG defaults these cross-region liveness timers to 5 seconds. A short
# control-plane or pod-network stall can otherwise tear down a healthy
# WAL stream and make preferred synchronous replication fall back to
# async. Keep failure detection bounded without amplifying a transient
# multi-second stall into repeated reconnects.
wal_sender_timeout: 30s
wal_receiver_timeout: 30s
monitoring:
enablePodMonitor: false
projectedVolumeTemplate: