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
+2
View File
@@ -305,6 +305,8 @@ if grep -Fq 'archive_timeout: 60s' "$root/deploy/kubernetes/production/database.
echo 'production archive timeout would exceed the certified cross-region bandwidth floor' >&2
exit 1
fi
grep -Fq 'wal_sender_timeout: 30s' "$root/deploy/kubernetes/production/database.yaml"
grep -Fq 'wal_receiver_timeout: 30s' "$root/deploy/kubernetes/production/database.yaml"
"$root/tests/release/cluster-release-helper-test.sh" >/dev/null
"$root/tests/release/production-acceptance-script-test.sh" >/dev/null