Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.52 KB

CVMFS Stratum-1 Replicator

This is a relatively simple set of systemd units that keep a Stratum-1 up-to-date.

  • cvmfs-snapshot.service: The top-level service for all snapshotting activity.
  • [email protected]: The template for individual snapshot jobs.
  • [email protected]: The template for individual snapshot timers.
  • cvmfs-snapshot-generator: Generates one tempalted snapshot service/timer per installed repo.
  • cvmfs-stratum1-replicator.spec: RPM spec file.

To use, copy files into a tarball and build/install the RPM, or install it from cvmfs-contrib. Then, enable and start the cvmfs-snapshot service:

systemctl enable cvmfs-snapshot
systemctl start cvmfs-snapshot

The second line will enable one unit per repo. To stop snapshots, use the following command, with an optional -f to force immediate stopping.

stop-cvmfs-snapshots -f

Reload systemd and restart the services:

Any time new repositories are added or parameters are changed, do the following two commands:

systemctl daemon-reload
systemctl restart cvmfs-snapshot

Overriding Defaults

By default, we check for updates every 20s; this is relatively aggressive. To adjust the defaults, create a file /etc/systemd/system/[email protected]/10-increase-timer.conf with the following contents:

[Timer]
OnUnitInactiveSec=30s

Logs

Each repository is logged separately. A convenience function