This triggers exactly every 4 hours but not on round timestamps.
Details
Details
- Reviewers
olasd - Group Reviewers
System administrators - Commits
- rSPSITE089b64ba3921: Update scheduler metrics every 4 hours
octo-diff: on scheduler nodes (saatchi, scheduler0.staging), the period is increased
accordingly:
*******************************************
Systemd::Timer[swh-scheduler-update-metrics.timer] =>
parameters =>
timer_content =>
@@ -3,6 +3,8 @@
_
[Timer]
-OnCalendar=daily
Unit=swh-scheduler-update-metrics.service
+OnCalendar=00/4:00
+RandomizedDelaySec=1h
+FixedRandomDelay=true
_
[Unit]
*******************************************
Systemd::Unit_file[swh-scheduler-update-metrics.timer] =>
parameters =>
content =>
@@ -3,6 +3,8 @@
_
[Timer]
-OnCalendar=daily
Unit=swh-scheduler-update-metrics.service
+OnCalendar=00/4:00
+RandomizedDelaySec=1h
+FixedRandomDelay=true
_
[Unit]
*******************************************Diff Detail
Diff Detail
- Repository
- rSPSITE puppet-swh-site
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
I'll try to randomize this a bit more.
| site-modules/profile/templates/swh/deploy/scheduler/swh-scheduler-update-metrics.timer.erb | ||
|---|---|---|
| 4–5 | as olasd suggested to me. | |
Comment Actions
What about FixedRandomDelay=true ? I think it makes sense to have this running every four hours exactly, rather than every 4 hours +/- 1 hour.