docs(pitr): the plugin path is real — transcript, layout, metrics, 1.31 gate closed
Documents what the live migration actually produced (kanban t_5df331de): - §8.3: restore manifest is externalClusters[].plugin + barmanObjectName/ serverName, with the 2026-11-19 rehearsal transcript (marker 23:04:53.07, target 23:05:00Z, poison 23:05:15.80 -> marker present, poison gone). - §8.4 (new): how the plugin is wired — vendored manifest, Service-annotation registration, cert-manager dependency, ObjectStore/ScheduledBackup shape, the injected init-sidecar, and the metrics family change. - §8.1/§5.1: producer is the plugin; retention moved to the ObjectStore; the "1.31 is a hard gate" caveat is replaced by "gate closed". - §9/§10 + namespace table: cert-manager and barman-cloud are live state now, with the verification log rows. - pitr-restore.md rewritten for the plugin (manifest, sidecar log evidence, the two-servers-name trap, retention location). - CNPG dashboard: the `or` now prefers the plugin's metric — the legacy cnpg_collector series still holds the PRE-migration timestamp.
This commit is contained in:
parent
c45255242b
commit
4c90eba08b
5 changed files with 224 additions and 105 deletions
|
|
@ -1,9 +1,9 @@
|
|||
# Garage on the Linode — the CloudNativePG WAL archive
|
||||
|
||||
A **second, independent** single-node Garage on the Linode VPS. It holds one
|
||||
bucket, `pg-wal-archive`, and its only consumer is CloudNativePG's barman-cloud
|
||||
integration for `sirius-growth/portal` (continuous WAL archiving + daily base
|
||||
backups → point-in-time recovery).
|
||||
bucket, `pg-wal-archive`, and its only consumer is the **CNPG-I Barman Cloud
|
||||
plugin** archiving for `sirius-growth/portal` (continuous WAL archiving + daily
|
||||
base backups → point-in-time recovery).
|
||||
|
||||
It is **not** the Pi's Garage (`infrastructure/garage/`, node
|
||||
`d053db4dfc97bf78`). Different host, different `node_key`, different metadata
|
||||
|
|
@ -99,8 +99,9 @@ Measured 2026-11-19:
|
|||
| Steady state (quiet) | ~6 MB WAL/day + 4.5 MB base backup/day ≈ **150 MB per 14-day window** |
|
||||
| Worst case (every segment full, 3–5× gzip) | ~1.5 GB/day ≈ 21 GB per 14 days — would hit the cap |
|
||||
|
||||
Retention is `spec.backup.retentionPolicy: "14d"` on the Cluster, enforced by
|
||||
barman-cloud when a backup completes. The 20 GB cap is deliberate: when it is
|
||||
Retention is `spec.retentionPolicy: "14d"` on the `ObjectStore` (`portal-wal` in
|
||||
`sirius-growth`), enforced by the plugin's instance sidecar (every 30 min), not
|
||||
by the Cluster. The 20 GB cap is deliberate: when it is
|
||||
reached Garage returns `507 InsufficientStorage` and the `Backup` /
|
||||
`ScheduledBackup` goes red — a visible failure instead of a full Linode disk.
|
||||
The response to that is to lower the retention policy to `7d`, or to grow the
|
||||
|
|
@ -110,7 +111,8 @@ continuity and every PITR target that depends on the deleted segment).
|
|||
## How the archive is laid out
|
||||
|
||||
`destinationPath: s3://pg-wal-archive` (bucket root) with the barman server name
|
||||
defaulting to the cluster name, so:
|
||||
explicitly set to the cluster name (`Cluster.spec.plugins[].parameters.serverName:
|
||||
portal`), so:
|
||||
|
||||
```
|
||||
pg-wal-archive/portal/base/20261119T223452/{backup.info,data.tar.gz}
|
||||
|
|
|
|||
Loading…
Reference in a new issue