Date: Fri, 17 Feb 2017 07:29:32 +0000 From: Guy TABRAR <Guy.TABRAR@uk.bnpparibas.com> To: Miroslav Lachman <000.fbsd@quip.cz>, Dustin Wenz <dustinwenz@ebureau.com>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: RE: Jailed periodic daily scripts smashing CPU Message-ID: <2112385FC012E541A52D6A28563A5572011894C8@LONS00110044.mercury.intra> In-Reply-To: <58A64FCA.5080302@quip.cz> References: <321260F8-95D8-4C21-90B5-FDB0F6FF98F9@ebureau.com> <58A64FCA.5080302@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org [mailto:owner-freebsd-stable@freebsd=
.org] On Behalf Of Miroslav Lachman
Sent: 17 February 2017 01:20
To: Dustin Wenz; freebsd-stable@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 ve=
ry disk IO intensive so we end up with changing time in /etc/crontab in eac=
h jail for periodic tasks.
The best way is to randomize these times on jail creation time.
Miroslav Lachman
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@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) plea=
se notify the sender immediately and delete this e-mail. Any unauthorised c=
opying, disclosure or distribution of the material in this e-mail is prohib=
ited.
Please refer to http://www.bnpparibas.co.uk/en/email-disclaimer/ for additi=
onal disclosures.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2112385FC012E541A52D6A28563A5572011894C8>
