[ARCH] Stage0 Tier0/1 runbooks and known restore issue
lint / hygiene (push) Failing after 26s
lint / hygiene (pull_request) Failing after 26s
standard / check (pull_request) Successful in 10s

This commit is contained in:
architect committed 2026-11-26 21:49:13 +03:00
1 parent 768ba209f6
commit 6459247a47
1 file changed
+63
+63
View File
@@ -0,0 +1,63 @@
# Tier0/1 Runbooks — Stage 0 draft
Статус: draft for operations; **не выполнять production-команды без approval**.
Все команды read-only, кроме явно помеченных.
## Authentik
- health: `curl -fsS http://192.168.1.114:9000/-/health/live/`
- logs: `pct exec 114 -- docker logs --tail 100 authentik-server`
- incidents: проверить postgres/redis контейнеры; не рестартовать всё.
- rollback: только после snapshot/backup.
## Gitea
- health: `curl -fsS http://192.168.1.140:3000/api/v1/version`
- logs: `pct exec 140 -- docker logs --tail 100 gitea`
- DB: `gitea_db` на CT151.
- **Known issue 2026-11-26:** restore `gitea_db-20261126-0315` fails on `action_run.title` varchar(255); see issue #202. Do not claim restore works.
## PostgreSQL CT151
- health: `pg_isready -h 192.168.1.151 -p 5432`
- connections: `select count(*) from pg_stat_activity;`
- backup: `/mnt/archive/backups/db`, `/mnt/backups/postgresql`.
- restore: isolated DB; never overwrite production.
- HA: backlog after RAM; no failover claim.
## NATS
- health: `curl -fsS http://192.168.1.115:8222/varz`
- JetStream: `curl -fsS http://192.168.1.115:8222/jsz`
- current: enabled, 0 streams/consumers.
- restart: only with approval; check streams first.
## Audit 360
- health: `curl -fsS http://127.0.0.1:9160/health`
- UI: `http://192.168.1.10:9161/` (SSO).
- backup: `systemctl start audit360-backup.service`
- restore: current dump has 14 tables; test in temp DB.
- tracker: `audit.sprint_items`, API `/api/audit`.
## Hub Core
- health: `curl -fsS http://127.0.0.1:9120/status`
- logs: `journalctl -u hub-core`
- no shell/DB access for agents outside Tool Gateway.
## Jellyfin
- health: `curl -fsS http://192.168.1.103:8096/`
- native playback remains if Hub/LLM down.
- do not rescan if media mount missing.
## Seerr
- health: `curl -fsS http://192.168.1.121:5055/api/v1/status`
- image: `ghcr.io/seerr-team/seerr:latest`
- no Jellyseerr migration without ADR.
## Prism
- health: `curl -fsS http://127.0.0.1:8095/api/health`
- not the central UI; Work product.
## Matrix
- health: `curl -fsS http://192.168.1.155:8008/_matrix/client/versions`
- preserve native clients if Hub down.
## n8n
- endpoint: TBD in Stage 0; do not assume 5678.
- DB backup required.