Hi all,
I have 100 or so FreeBSD VMs on a host and when disk intensive periodic scripts run, they all run at the same time. Think
I don't care, for example, when weekly/310.locate runs, so long as it runs weekly. I know I could change /etc/crontab on each and every VM and try to come up with a different time for each, but that would also change when the other weekly jobs run.
I have seen an
So my question is, is there a simple and centralised way of randomly delaying or staggering the invocation time of individual periodic scripts? Ideally it would go in /etc/rc.conf or /usr/local/etc/rc.conf (or periodic.conf).
Thanks,
Scott
I have 100 or so FreeBSD VMs on a host and when disk intensive periodic scripts run, they all run at the same time. Think
security
and locate
.I don't care, for example, when weekly/310.locate runs, so long as it runs weekly. I know I could change /etc/crontab on each and every VM and try to come up with a different time for each, but that would also change when the other weekly jobs run.
I have seen an
anticongestion_sleeptime
in periodic.conf but to use it requires (I believe) editing individual periodic scripts to call anticongestion().
Something I'd rather not do.So my question is, is there a simple and centralised way of randomly delaying or staggering the invocation time of individual periodic scripts? Ideally it would go in /etc/rc.conf or /usr/local/etc/rc.conf (or periodic.conf).
Thanks,
Scott