2 ms·
> To make this transition between pods seamless, we implemented logic to prevent the node from going down at the top of a minute when possible since — given the
by progbits 3y ago
> To make this transition between pods seamless, we implemented logic to prevent the node from going down at the top of a minute when possible since — given the nature of cron — that is when it is likely that scripts will need to be scheduled to run.
Crons with precisely specified time where everyone just uses whole minutes/hours are not great practice. Very unlikely you actually need such precision in a cron job and you get spiky load.
Usual approach is to set the minute to a hash of the cron config name or something, modulo 60. Hourly jobs still run hourly, but each one on random minute.
(Setting aside how fragile that setup of avoiding pod downtime sounds)