Cross-Cluster Sync¶
slurmkit sync writes derived per-host snapshots under .slurmkit/sync/ so repositories can share collection status across clusters.
Purpose¶
Collections are the local source of truth. Sync files are exports for cross-host visibility and git transport.
That means:
- collections live in
.slurmkit/collections/ - sync snapshots live in
.slurmkit/sync/ - sync does not replace or own collection history
Layout¶
Each file contains the latest summarized collection state for one host.
Basic usage¶
Write the local host snapshot:
Restrict to one collection:
Write the snapshot and push it through git:
Typical workflow¶
On cluster A:
On cluster B:
Git usage¶
If you do not use --push, you can commit sync files manually:
Conflict handling¶
Conflicts are usually limited to one host-owned file:
If that happens, keep the version from the machine that owns the file and re-run slurmkit sync there if needed.