What about:
@daily sleep ${RANDOM:0:2}m ; /some/cron/job.sh
Which gives you a jitter of up to 99 minutes.
Cheers,
Guy
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Miroslav Lachman
Sent: 17 February 2017 01:20
To: Dustin Wenz; [email protected]
Subject: Re: Jailed periodic daily scripts smashing CPU
Dustin Wenz wrote on 2017/02/16 22:47:
> I have a number of servers with roughly 60 jails running on each of
> them. On these hosts
60 is way more than we have on our jailers. Daily / security scripts are very
disk IO intensive so we end up with changing time in /etc/crontab in each jail
for periodic tasks.
The best way is to randomize these times on jail creation time.
Miroslav Lachman
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"
___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and delete this e-mail. Any unauthorised copying,
disclosure or distribution of the material in this e-mail is prohibited.
Please refer to http://www.bnpparibas.co.uk/en/email-disclaimer/ for additional
disclosures.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"