Site icon New Generation Enterprise Linux

Stop letting systemd timers kill your server performance with random start times

Systemd & Service Management

Stop letting systemd timers kill your server performance with random start times

Technical Briefing | 11/27/2026

You spend hours tuning your database queries and optimizing kernel sysctls, only to find the system load spikes at random intervals. You check cron, but there is nothing scheduled. Then it hits you: systemd timers. Specifically, the ones with RandomDelaySec set to something generous, causing your resource-heavy maintenance tasks to trigger whenever the daemon feels like it.

Why default timers are actually pretty dangerous

Most default timers in modern distros use the RandomDelaySec directive to prevent a thundering herd of machines from hitting a server all at once. This makes sense for distributed package mirrors, but it is a disaster for internal infrastructure where you need to coordinate backups or log rotations to avoid locking up your disk I/O. If you leave this to chance, you will eventually find your nightly backup running during peak business hours.

systemd-analyze calendar --iterations=5 "$(systemctl show -p OnCalendar --value your-service.timer)"
  • Check your current timer settings with systemctl list-timers –all
  • Override the default unit files in /etc/systemd/system/ to kill off the randomness
  • Use Persistent=true to make sure missed jobs run immediately after a boot

Taking back control of your execution window

If you have a job that actually matters, stop relying on the default timer behavior. Drop an override file in /etc/systemd/system/service.timer.d/override.conf and explicitly set RandomizedDelaySec=0. It is the only way to sleep soundly knowing your heavy-duty cron replacements are not going to decide to eat your IOPS when you are trying to serve traffic.

Linux Admin Automation  |  © www.ngelinux.com  |  11/27/2026
0 0 votes
Article Rating
Exit mobile version