From 6459247a475165d56530ce31c4ff96b013318f7b Mon Sep 17 00:00:00 2001 From: architect Date: Thu, 26 Nov 2026 21:49:13 +0300 Subject: [PATCH] [ARCH] Stage0 Tier0/1 runbooks and known restore issue --- docs/architecture/RUNBOOKS.md | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 docs/architecture/RUNBOOKS.md diff --git a/docs/architecture/RUNBOOKS.md b/docs/architecture/RUNBOOKS.md new file mode 100644 index 0000000..20b0e63 --- /dev/null +++ b/docs/architecture/RUNBOOKS.md @@ -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.