From: Lennart Poettering Date: Tue, 17 Jun 2025 14:05:12 +0000 (+0200) Subject: core/timer: Introduce RandomOffsetSec= knob (#36437) X-Git-Tag: v258-rc1~300 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=279962a9e8bfb2d96834ec0360388e77fb818d90;p=thirdparty%2Fsystemd.git core/timer: Introduce RandomOffsetSec= knob (#36437) This is like RandomDelaySec, but it doesn't reset whenever the manager restarts. Fixes https://github.com/systemd/systemd/issues/21166 --- 279962a9e8bfb2d96834ec0360388e77fb818d90 diff --cc man/systemd.timer.xml index 03a4bda3596,cf5d1030a6f..5f1dd0ce9c9 --- a/man/systemd.timer.xml +++ b/man/systemd.timer.xml @@@ -292,14 -292,14 +292,14 @@@ FixedRandomDelay= - Takes a boolean argument. When enabled, the randomized offset specified by - RandomizedDelaySec= is reused for all firings of the same timer. For a given timer - unit, the offset depends on the machine ID, user identifier and timer name, which means that it is - stable between restarts of the manager. This effectively creates a fixed offset for an individual - timer, reducing the jitter in firings of this timer, while still avoiding firing at the same time as - other similarly configured timers. + Takes a boolean argument. When enabled, the randomized delay specified by + RandomizedDelaySec= is chosen deterministically, and remains stable between all + firings of the same timer, even if the manager is restarted. The delay is derived from the machine + ID, the manager's user identifier, and the timer unit's name. This effectively creates a unique fixed + offset for each timer, reducing the jitter in firings of an individual timer while still avoiding + firing at the same time as other similarly configured timers. - This setting has no effect if RandomizedDelaySec= is set to 0. Defaults to + This setting has an effect only if RandomizedDelaySec= is not 0. Defaults to .