Using prime numbers to avoid cron task collision at sametime
My idea was to run on prime intervals instead of every 5 minutes. Couple of them have depend on output from others tasks but that should not be an issue.
Job 1 - Every 5 minutes ( computational less intense )
Job 2 - Every 7 minutes
Job 3 - Every 11 minutes
Job 4 - Every 13 minutes
Job 5 - Every 17 minutes ( computational more intense )
.... and so on
This should put a significant dent in avoiding them running at same time and leaving some room for each task to finish itself. I was just wondering if there is any other alternative that I can explore here.
Thanks for any suggestions in advance.