Skip to content

Commit

Permalink
Update bootc-fetch-apply-updates.timer with comments for RandomizedDe…
Browse files Browse the repository at this point in the history
…laySec=

RandomizedDelaySec= is the best kept secret of timers. Given that such few people know about it and it's very useful for large deployments, I think it makes sense to add it as a comment.
  • Loading branch information
mrguitar authored Feb 1, 2024
1 parent 70a6c76 commit ba1ce96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions systemd/bootc-fetch-apply-updates.timer
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ConditionPathExists=/run/ostree-booted
OnBootSec=1h
# This time is relatively arbitrary and obviously expected to be overridden/changed
OnUnitInactiveSec=8h
# When deploying a large number of systems it's recommended to randomize this timer to a degree to help with load.
#RandomizedDelaySec=2h

[Install]
WantedBy=timers.target

0 comments on commit ba1ce96

Please sign in to comment.