From 2b5eda1754a481ac46034a3d82840f055b007fbf Mon Sep 17 00:00:00 2001 From: architect Date: Thu, 26 Nov 2026 22:02:15 +0300 Subject: [PATCH] [ARCH] Stage0 service SLO targets and cards --- docs/architecture/SERVICE-CARDS.md | 26 +++++++++++++------------- docs/architecture/SERVICE-SLOS.md | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 docs/architecture/SERVICE-SLOS.md diff --git a/docs/architecture/SERVICE-CARDS.md b/docs/architecture/SERVICE-CARDS.md index 03daa43..fb4df29 100644 --- a/docs/architecture/SERVICE-CARDS.md +++ b/docs/architecture/SERVICE-CARDS.md @@ -2,19 +2,19 @@ Статус: draft. Runbook/rollback заполняются по мере Stage 0. -| Service | Tier | Owner | Health | Backup | Restore | Runbook | Rollback | -|---|---:|---|---|---|---|---|---| -| authentik | 0 | Roman | HTTP /-/health/live/ | required | required | todo | todo | -| gitea | 0 | Roman | /api/v1/version | required | required | todo | todo | -| postgres-ct151 | 0 | Roman | TCP+SQL | pg_dump/PITR target | required | todo | todo | -| nats | 0 | Roman | TCP + JetStream | config | config | todo | todo | -| audit360 | 0 | Roman | /health | daily dump+JSON | tested 14 tables | todo | todo | -| hub-core | 0 | Roman | /status | config | config | todo | todo | -| jellyfin | 1 | Roman | HTTP | config+metadata | required | todo | todo | -| seerr | 1 | Roman | /api/v1/status | config+DB | required | todo | todo | -| prism | 1 | Roman | /api/health | config | config | todo | todo | -| matrix-synapse | 1 | Roman | /_matrix/client/versions | DB/config | required | todo | todo | -| n8n | 1 | Roman | todo | config+DB | required | todo | todo | +| Service | Tier | Owner | Health | Backup | Restore | Runbook | Rollback | SLO | Contract test | +|---|---:|---|---|---|---|---|---|---|---| +| authentik | 0 | Roman | HTTP /-/health/live/ | required | required | RUNBOOKS | RUNBOOKS | login p95 500ms | health smoke | +| gitea | 0 | Roman | /api/v1/version | required | UTF8 drill OK | RUNBOOKS | RUNBOOKS | API p95 300ms | health smoke | +| postgres-ct151 | 0 | Roman | TCP+SQL | pg_dump/PITR target | partial | RUNBOOKS | RUNBOOKS | ready/RPO | TCP test | +| nats | 0 | Roman | TCP + JetStream | config | config | RUNBOOKS | RUNBOOKS | pub/sub p95 | JS test | +| audit360 | 0 | Roman | /health | daily dump+JSON | tested 14 tables | RUNBOOKS | RUNBOOKS | UI/tracker | 6/6 fitness | +| hub-core | 0 | Roman | /status | config | config | RUNBOOKS | RUNBOOKS | p95 300ms | TBD | +| jellyfin | 1 | Roman | HTTP | config+metadata | required | RUNBOOKS | RUNBOOKS | start p95 3s | blocked key | +| seerr | 1 | Roman | /api/v1/status | config+DB | required | RUNBOOKS | RUNBOOKS | API p95 500ms | health smoke | +| prism | 1 | Roman | /api/health | config | config | RUNBOOKS | RUNBOOKS | health 200 | health smoke | +| matrix-synapse | 1 | Roman | /_matrix/client/versions | DB/config | required | RUNBOOKS | RUNBOOKS | sync p95 | health smoke | +| n8n | 1 | Roman | todo | config+DB | required | RUNBOOKS | RUNBOOKS | TBD | TBD | ## Gate diff --git a/docs/architecture/SERVICE-SLOS.md b/docs/architecture/SERVICE-SLOS.md new file mode 100644 index 0000000..f73819f --- /dev/null +++ b/docs/architecture/SERVICE-SLOS.md @@ -0,0 +1,25 @@ +# Service SLOs — Stage 0 draft + +Статус: targets for pilot, not measured facts. +Owner: Roman. Review after Stage 0 baseline. + +| Service | Tier | SLO target | Measurement | Current evidence | +|---|---:|---|---|---| +| Authentik | 0 | login p95 <=500 ms; availability 99.9% | synthetic login + Kuma | health only | +| Gitea | 0 | API p95 <=300 ms; availability 99.9% | `/api/v1/version` + Kuma | health | +| PostgreSQL CT151 | 0 | connection ready; backup RPO <=24h; restore <=60 min | pg_isready + restore drill | partial restore | +| NATS | 0 | pub/sub p95 <=100 ms; no lost messages | JetStream test | publish/retain/ack | +| Audit 360 | 0 | UI 200; tracker API >=30 items | synthetic + API | 6/6 tests | +| Hub Core | 0 | /status 200; p95 <=300 ms | synthetic | not measured | +| Jellyfin | 1 | playback start p95 <=3s LAN direct | client telemetry | blocked on key | +| Seerr | 1 | request status API 200; p95 <=500 ms | synthetic | health | +| Prism | 1 | health 200 | synthetic | health | +| Matrix | 1 | client versions 200; sync p95 | synthetic | health | +| n8n | 1 | health endpoint unknown | TBD | unknown | + +## Rules + +- SLO is not a claim until measured. +- No green status without evidence. +- Availability target applies to user-facing path, not just port. +- Restore/backup targets are tested separately.