Make backup/replication services mutually exclusive #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rclomatic.serviceshould not run whilepostgres-backup.serviceorreplicate_d.service(zfs-replicate.sh) are still running.Why:
rclomatic'sbackup_databasestarget syncs/pool01/backup/databases, whichpostgres-backup.shwrites into — and itshomes/gv0targets (zfs: true) sync from whatever snapshotzfs-replicate.shmost recently replicated intopool01/replicas/{homes,gluster}. Right now the three timers are just spaced out by clock time (replicate_d.timer00:15 UTC,postgres-backup.timer~01:15-01:20 UTC,rclomatic.timer03:05 UTC) with no actual dependency between them — if one runs long (e.g. a big pg_dump, a slow/retried zfs send, network issues), rclomatic could start syncing while the other is still mid-write, backing up a partial/inconsistent state.Needs a real implementation decision, not done yet - options to consider:
After=/Requires=chaining the timers into one sequence, orConflicts=so one won't start while another is active)