arch-design-agent-skill-das.../design/technology-architecture/03-operational-baseline.md

48 lines
1023 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
doc_id: DOC-TA-003
title: 运维基线
version: 0.1.0
status: reviewed
owners:
- 林然
upstream:
- ./01-runtime-topology.md
downstream:
- ./04-release-and-rollback.md
updated_at: 2026-03-23
---
# 运维基线
## 概述
单人使用的工具型应用,运维策略从简。
## 健康检查
- 后端:`GET /api/health` 返回 `{"status": "ok"}`
- Docker healthcheck定期探测 `/api/health`
- 前端Nginx 默认返回静态文件即可视为健康
## 日志
- 后端日志输出到 stdout/stderr
- Docker 自带日志收集(`docker compose logs`
- 不需要 ELK/Loki 等日志系统
## 备份
- 不需要专门备份——设计文件在 Git 仓库中
- projects.json 丢失后重新注册即可,代价极低
## 监控
- 不需要专门的监控系统
- Docker 基础资源监控(`docker stats`)足够
- 如果未来需要,可以加 Prometheus + Grafana但当前不需要
## 重启策略
- Docker Compose: `restart: unless-stopped`
- 后端进程崩溃后 Docker 自动重启