Files

34 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

# 2026-06-08 Agent 401 停心跳 — 部署验证
## 部署信息
| 项 | 值 |
|----|-----|
| Commit | `972456a` feat(agent): 401 停心跳、配置重载后重启与升级双文件下发 |
| 门控 | 7/7 PASS |
| 方式 | `deploy/deploy-production.sh` |
## 生产检查
| 检查 | 结果 |
|------|------|
| `GET /health` | `ok` |
| `GET /app/` | HTTP 200 |
| `GET /agent/heartbeat_policy.py` | HTTP 200,含 `heartbeat_should_stop` |
| `GET /agent/agent.py` | 含 `heartbeat_policy` import、`AGENT_VERSION` |
## 子机 rollout#7 · 用户/运维)
中心已提供新文件;**各子机须批量「升级 Agent」** 才会下载 `agent.py` + `heartbeat_policy.py`
验收步骤(抽 1 台):
1. `journalctl -u nexus-agent -f` 观察心跳
2. 临时改错 `config.json` 中 central api_key → 应出现 **一条** 401 error 后不再重复
3. 通过管理端修正 key 或 `/config/reload` → 心跳应恢复
## 回滚
MySQL: `/var/backups/nexus/nexus-before-upgrade-20260608-150632.sql.gz`
镜像: `nexus-prod-nexus:rollback`