From ec31549289bf82d1d47e379bc156ea640e30a3be Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 17 Nov 2026 12:56:28 +0100 Subject: [PATCH] docs(infra): db dumps run as pre_hooks, daily backup report No 02:30 dump cron exists on the OVH nodes: the 03:00 orca backup runs each DB service's pre_hook and fails if a dump fails. Adds the daily backup report and its alerts (t76, infra-control-center, 17.11.). Co-Authored-By: Claude Opus 5.5 --- INFRASTRUCTURE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INFRASTRUCTURE.md b/INFRASTRUCTURE.md index d7f8cdf..b76c15e 100644 --- a/INFRASTRUCTURE.md +++ b/INFRASTRUCTURE.md @@ -75,7 +75,7 @@ bp-platform-prod (agent, 57.129.34.146, OVH c3-16) ≈ 8.8 GiB project platform-prod portal-prod app.breakpilot.com 768 MiB tenants /, staff /admin tenant-registry-prod registry.breakpilot.com 512 MiB licences, ERP link (live erp.breakpilot.com) - pg-prod internal, volume 1 GiB dump hook + 02:30 cron + pg-prod internal, volume 1 GiB dump pre_hook of the 03:00 backup docs-prod docs.breakpilot.com 64 MiB VitePress, DE + EN project pruefwerk-prod pruefwerk-dashboard-prod pruefwerk.breakpilot.com 640 MiB @@ -198,7 +198,7 @@ Object storage (Hetzner, nbg1): ## 5. Backup Requirements -Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Storage (since 2026-11-06), **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first — through the `pre_hook`s and, on the platform nodes, `scripts/db-dumps.sh` from cron at 02:30. Retention: local copies 30 days on platform (staging included), 3 days on infra. In OVH Object Storage, platform backups expire after 30 days and deleted versions go 7 days later, so a backup is gone at the latest 37 days after it was made (customer wording: "kept for 30 days and deleted within 7 days after that"). The infra bucket's lifecycle was set by hand (values to confirm). The archive bucket `bp-infra-archive-ovh` has no expiry; it holds only the DSMS and certifai backups, no platform customer data. +Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Storage (since 2026-11-06), **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first, through each DB service's `pre_hook`, which the 03:00 backup runs before it uploads; a failed dump fails the backup. There is no separate dump cron; `scripts/db-dumps.sh` is for a dump by hand, e.g. before a promotion. Since 2026-11-17 a daily backup report from both cluster masters goes to SigNoz at 05:00 UTC (one event per job: orca master, each agent, the platform object backup); a failed or missing job sends a critical alert by e-mail, no report for 26 h a warning (t76). Retention: local copies 30 days on platform (staging included), 3 days on infra. In OVH Object Storage, platform backups expire after 30 days and deleted versions go 7 days later, so a backup is gone at the latest 37 days after it was made (customer wording: "kept for 30 days and deleted within 7 days after that"). The infra bucket's lifecycle was set by hand (values to confirm). The archive bucket `bp-infra-archive-ovh` has no expiry; it holds only the DSMS and certifai backups, no platform customer data. ``` ┌──────────────────────────────┬──────────────────────────┬────────────┬───────────┬────────────────────┐