Files
Nexus/docs/changelog/2026-06-07-health-monitor-flock-fail-count-fix.md
2026-07-08 22:31:31 +08:00

590 B

Changelog — health_monitor flock 失败计数修复

日期: 2026-06-07

摘要

修复 bump_fail_count 在使用 flock 时子 shell 未回传计数、导致 FAIL 恒为 0、Layer 3 永不触发重启/Telegram 的 bug。

动机

生产模拟巡检时发现连续 3 次 /health 失败后 last_restart 仍为空;bash -x 显示 FAIL=0/tmp/nexus_health_fail_count 已为 3。

涉及文件

  • deploy/health_monitor.sh

验证

# 阻断 127.0.0.1:8600 后连续执行 3 次 health_monitor.sh,第 3 次应触发 Telegram + docker restart