fix(postgres): 修正跨地域 WAL 归档带宽预算

将生产 archive_timeout 从 60 秒调整为 5 分钟,避免 16 MiB WAL 段在当前宁波香港链路上持续产生高于复制吞吐的空闲流量。\n\n同步复制保持开启,双库健康时 RPO 仍为 0;单库降级时对象存储归档 RPO 保持在 5 分钟目标内。补充发布回归门禁,防止配置退回无法追平的 60 秒。\n\n验证:kubectl kustomize、bash -n、ShellCheck、manual-release-test。
This commit is contained in:
2026-07-31 18:42:46 +08:00
parent e05922b0f4
commit 0b9634b74c
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -290,5 +290,10 @@ grep -Fq 'gateway_tasks' "$root/deploy/manual/easyai-ai-gateway-release"
grep -Fq 'gateway_task_attempts' "$root/deploy/manual/easyai-ai-gateway-release"
grep -Fq 'gateway_task_events' "$root/deploy/manual/easyai-ai-gateway-release"
grep -Fq 'production_changed=false' "$root/scripts/publish-release-images.sh"
grep -Fq 'archive_timeout: 5min' "$root/deploy/kubernetes/production/database.yaml"
if grep -Fq 'archive_timeout: 60s' "$root/deploy/kubernetes/production/database.yaml"; then
echo 'production archive timeout would exceed the certified cross-region bandwidth floor' >&2
exit 1
fi
echo 'manual_release_tests=PASS'