I’m using https://github.com/kvz/cronlock to prevent cronjobs from starting twice on different EC2 machines. It works fine however when the minute strikes they all start (50+) on one machine (probably because the lock win on this machine)
Instead i want to distribute them like 15-20-15 on different machines but still uniquely
Example of crontab:
DATEVAR=date +%Y%m%d%H%M
* * * * * CRONLOCK_KEY="9aTp28_$($DATEVAR)" cronlock php test.php