shift cron.daily / logrorate timer
Bug #2028130 reported by
Junien F
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Mirror Charm |
Fix Released
|
High
|
Ivan |
Bug Description
The archive servers see connections spikes with the following patterns :
- every hour, at :00 ("hourly" systemd timer, "0 X * * *" cron jobs) and :17 (cron.hourly)
- every day at 00:00 ("daily" systemd timer, which adds to the "hourly" timer)
- every day at 06:25 (cron.daily)
And generally, traffic is higher during EMEA and AMER day, and lower during APAC day.
We should try to make the archive servers as idle as possible during high usage hours, I would suggest updating logrotate.timer and cron.daily (in /etc/crontab) to start at 04:30 UTC.
Thanks
Related branches
~ivaneloff/ubuntu-mirror-charm:master
- 🤖 Canonical IS Review Bot: Approve
- Haw Loeung: Approve (+1)
- Barry Price: Approve
-
Diff: 34 lines (+16/-0)2 files modifiedhooks/hooks.py (+12/-0)
templates/systemd-logrotate-override.tmpl (+4/-0)
Changed in ubuntu-mirror-charm: | |
status: | New → In Progress |
assignee: | nobody → Ivan (ivaneloff) |
Changed in ubuntu-mirror-charm: | |
importance: | Undecided → High |
Changed in ubuntu-mirror-charm: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
logrotate.timer is:
``` system/ logrotate. timer man:logrotate( 8) man:logrotate. conf(5)
$ sudo systemctl cat logrotate.timer
# /lib/systemd/
[Unit]
Description=Daily rotation of log files
Documentation=
[Timer]
OnCalendar=daily
AccuracySec=1h
Persistent=true
[Install] timers. target
WantedBy=
```
This should be amended via systemd override.