# Nexus 3层守护机制设计

Layer1: Supervisor—Python崩溃自动重启。Layer2: Python self_monitor—每30s检查Redis/MySQL/WebSocket。Layer3: Shell health_monitor.sh—每分钟HTTP GET /health，连续3次失败→supervisorctl restart+Telegram通知。Supervisor配置: deploy/nexus.conf(uvicorn --workers 4)。Shell脚本: deploy/health_monitor.sh(cron 1min)。

## 相关概念

- 守护
- Supervisor
- 自检
- Shell
- 健康检查

---
*源: agentmemory (mem_nexus_guardian)*
