Jailed periodic daily scripts smashing CPU
Guy TABRAR
Guy.TABRAR at uk.bnpparibas.com
Fri Feb 17 07:34:44 UTC 2017
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: owner-freebsd-stable at freebsd.org [mailto:owner-freebsd-stable at freebsd.org] On Behalf Of Miroslav Lachman
Sent: 17 February 2017 01:20
To: Dustin Wenz; freebsd-stable at freebsd.org
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
_______________________________________________
freebsd-stable at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
___________________________________________________________
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.
More information about the freebsd-stable
mailing list