News for hackers. Stuff that matters.
Re:A quick and simple editor for cron schedule expressions by pabs3 on Tuesday August 31, 2021 @01:58AM (#28364419)
The randomisation features of systemd timers are pretty essential, to avoid lots of systems running the same thing at the same time. To do that in cron you have to do ugly things like use bash and then run sleep $RANDOM.
Re:A quick and simple editor for cron schedule expressions by xorcist on Tuesday August 31, 2021 @03:34AM (#28364929)
Several cron implementations (including the default in Red Hat-derived distributions) have a built-in RANDOM_DELAY variable you can set.

I prefer setting the random offset when writing/deploying the crontab (you probably have them committed somewhere so there's bound to be a deployment mechanism, such as ansible). This way the offset is kept constant, while still avoiding the "thundering" cron.