mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 12:46:14 +09:00
docs(clickhouse): say that a quota-refused archive delete holds the Backup
A cleanup Job a ResourceQuota refuses keeps the Backup terminating until the quota lets the Job through, which under a quota of no Jobs at all is for good; the scenario now says so and points at the skip annotation. Assisted-by: LLM Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
This commit is contained in:
1 parent
ba48d025ca
commit
1d1ea91dde
1 file changed
+1
-1
@@ -51,5 +51,5 @@ The script:
|
||||
|
||||
- Both flows assume the strategy template uses `.Mode` to switch between
|
||||
`create_remote` and `restore_remote`. See `01-create-strategy.sh`.
|
||||
- On `backup.useSystemBucket: true`, deleting the Cozystack `Backup` deletes its archive through the sidecar and the `Backup` stays until that delete finished. When the ClickHouse application is already gone or no longer uses the system bucket, the platform's system bucket is no longer the one the `Backup` records its archive in (also when it changes while the delete runs), or the archive is named without its BackupJob's UID (a backup still running when the controller was upgraded, whose name another run of the same second may share), the `Backup` is released with an `ArtifactNotDeleted` Warning Event naming the archive left in the bucket; a delete that fails is retried, after a wait that starts at 30 seconds and doubles with each failure up to 30 minutes, and each failure is reported as an `ArtifactCleanupFailed` Warning Event; the `backups.cozystack.io/skip-artifact-cleanup: "true"` annotation releases it without creating another cleanup Job; a cleanup Pod that already exists can still start a delete until it is removed, and a delete the sidecar already accepted still runs to the end. A `Backup` taken before the archive name was recorded, or by a strategy that does not use `.ArchiveName`, does not name its archive and leaves it behind. So does a `Backup` that names its archive but not the bucket setting, as one recorded by a controller older than this behaviour does; it is released without an Event.
|
||||
- On `backup.useSystemBucket: true`, deleting the Cozystack `Backup` deletes its archive through the sidecar and the `Backup` stays until that delete finished. When the ClickHouse application is already gone or no longer uses the system bucket, the platform's system bucket is no longer the one the `Backup` records its archive in (also when it changes while the delete runs), or the archive is named without its BackupJob's UID (a backup still running when the controller was upgraded, whose name another run of the same second may share), the `Backup` is released with an `ArtifactNotDeleted` Warning Event naming the archive left in the bucket; a delete that fails is retried, after a wait that starts at 30 seconds and doubles with each failure up to 30 minutes, and each failure is reported as an `ArtifactCleanupFailed` Warning Event; a cleanup Job a ResourceQuota refuses is reported the same way, and the `Backup` stays while the quota refuses the Job, unless the annotation below releases it; the `backups.cozystack.io/skip-artifact-cleanup: "true"` annotation releases it without creating another cleanup Job; a cleanup Pod that already exists can still start a delete until it is removed, and a delete the sidecar already accepted still runs to the end. A `Backup` taken before the archive name was recorded, or by a strategy that does not use `.ArchiveName`, does not name its archive and leaves it behind. So does a `Backup` that names its archive but not the bucket setting, as one recorded by a controller older than this behaviour does; it is released without an Event.
|
||||
- On the tenant's own bucket the archive's lifecycle stays the tenant's: deleting the `Backup` leaves it, and `POST /backup/delete/remote/<name>` on the sidecar (port 7171, basic auth from the `<release>-backup-api-auth` Secret) deletes one by hand.
|
||||
Reference in new issue
Block a user