镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit d46f16f

Browse files
committed
fix(backup): preserve verification budgets while host work is queued
1 parent c8a4d4e commit d46f16f

5 files changed

Lines changed: 29 additions & 0 deletions

File tree

‎ops/production/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ Mail restore drills order after already queued application backups, integrity
2424
checks and database drills. Their runtime budget starts when the drill can run,
2525
so a long initial upload cannot exhaust the mail service's lock-wait budget.
2626
The existing shared lock still serializes later arrivals.
27+
28+
Host integrity checks and database drills order after already queued backups
29+
and retries. They begin their own six-hour operational budget when runnable.
30+
This accounts for full SQLite validation on the persistent volume; observed
31+
random-read throughput was about 1 MiB/s during the initial 4.5 GiB snapshot
32+
set. Integrity and restore validation remain complete.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[Unit]
2+
After=host-app-backup.service
23
RequiresMountsFor=/var/lib/stacks-deployments
34

45
[Service]
56
ExecStart=
67
ExecStart=/usr/local/sbin/host-backup.py --retry-failed --preserve-backups
8+
9+
# Initial full snapshots and both-provider restores include multi-GiB databases.
10+
TimeoutStartSec=6h

‎ops/production/systemd/host-app-backup.service.d/disk-recovery.conf‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ RequiresMountsFor=/var/lib/stacks-deployments
44
[Service]
55
ExecStart=
66
ExecStart=/usr/local/sbin/host-backup.py --preserve-backups
7+
8+
# Initial full snapshots and both-provider restores include multi-GiB databases.
9+
TimeoutStartSec=6h
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
After=host-app-backup.service host-app-backup-retry.service
3+
RequiresMountsFor=/var/lib/stacks-deployments
4+
5+
[Service]
6+
7+
# Initial full snapshots and both-provider restores include multi-GiB databases.
8+
TimeoutStartSec=6h
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
After=host-app-backup.service host-app-backup-retry.service host-backup-check.service
3+
RequiresMountsFor=/var/lib/stacks-deployments
4+
5+
[Service]
6+
7+
# Initial full snapshots and both-provider restores include multi-GiB databases.
8+
TimeoutStartSec=6h

0 commit comments

Comments
 (0)