3 ms·
Cron has a bunch of this kind of thing built in for stuff that's known to touch the network, like automatically running apt-update in the background. You don't
by mikepurvis 4y ago
Cron has a bunch of this kind of thing built in for stuff that's known to touch the network, like automatically running apt-update in the background. You don't want millions of Ubuntu machines in each timezone all hitting the CDN within seconds of each other.
I think Google Maps does it too with routing— it adds a bit of fuzz so that it doesn't send literally every car down path A when there's a path B that's nearly as goo.
- ciupicri 4y agosystemd.timer [1] also has AccuracySec, RandomizedDelaySec and FixedRandomDelay. [1]: https://www.freedesktop.org/software/systemd/man/systemd.timer.html#AccuracySec= https://www.freedesktop.org/software/systemd/man/systemd.tim...
- jwilk 4y ago> Cron has a bunch of this kind of thing built in At least Vixie Cron doesn't support anything like this. Each cron job that needs it has to implement it on its own, e.g.: https://github.com/Debian/apt/blob/2.5.1/debian/apt.apt-compat.cron.daily#L31 https://github.com/Debian/apt/blob/2.5.1/debian/apt.apt-comp...