Thread View: muc.lists.freebsd.current
2 messages
2 total messages
Started by Darren Henderson
Thu, 05 Nov 2026 15:28
Re: Should we add jitter to cron(8) ?
Author: Darren Henderson
Date: Thu, 05 Nov 2026 15:28
Date: Thu, 05 Nov 2026 15:28
101 lines
9530 bytes
9530 bytes
--000000000000752e1b065f89254e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Considering POLA I believe it would be better as an opt-in kind of thing rather than opt-out. If people need it they can enable it. In general opt-out changes should be avoided. Just flipping this around is likely to cause many many unexpected issues for people who are not paying close attention. On Wed, Nov 4, 2026 at 5:14=E2=80=AFPM Poul-Henning Kamp <phk@phk.freebsd.d= k> wrote: > It seems that we have solid consensus for jittering by default, with > option to disable. > > I had not spotted the -j/-J options to cron before I raised the > issue, but given those, I dont see neither an need for code changes > nor bike-sheds about their syntax. > > It is of course mathematically ideal to jitter [0=E2=80=A659[ seconds. > > But that would lead to some anomalies which I would rather avoid, > for instance a "every minute" job being called twice within a few > seconds. > > In power grids the relevant regulation time constants are typically > below 10 and almost always less than 15 seconds. > > So on balance, I propose we change the cron default arguments to include > > -j 20 -J 20 > > That way there will be at least 40 seconds between "once per minute jobs"= . > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetenc= e. > > --000000000000752e1b065f89254e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Considering POLA I believe it would=C2=A0be better as an o= pt-in kind of thing rather than opt-out. If people need it they can enable = it. In general opt-out changes should be avoided. Just flipping this around= =C2=A0is likely to cause many many unexpected issues for people who are not= paying close attention.</div><br><div class=3D"gmail_quote gmail_quote_con= tainer"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 4, 2026 at 5:14= =E2=80=AFPM Poul-Henning Kamp <<a href=3D"mailto:phk@phk.freebsd.dk">phk= @phk.freebsd.dk</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">It seems that we have solid consensus for jittering by defau= lt, with<br> option to disable.<br> <br> I had not spotted the -j/-J options to cron before I raised the<br> issue, but given those, I dont see neither an need for code changes<br> nor bike-sheds about their syntax.<br> <br> It is of course mathematically ideal to jitter [0=E2=80=A659[ seconds.<br> <br> But that would lead to some anomalies which I would rather avoid,<br> for instance a "every minute" job being called twice within a few= <br> seconds.<br> <br> In power grids the relevant regulation time constants are typically<br> below 10 and almost always less than 15 seconds.<br> <br> So on balance, I propose we change the cron default arguments to include<br= > <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 -j 20 -J 20<br> <br> That way there will be at least 40 seconds between "once per minute jo= bs".<br> <br> -- <br> Poul-Henning Kamp=C2=A0 =C2=A0 =C2=A0 =C2=A0| UNIX since Zilog Zeus 3.20<br= > phk@FreeBSD.ORG=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| TCP/IP since RFC 956<br> FreeBSD committer=C2=A0 =C2=A0 =C2=A0 =C2=A0| BSD since 4.3-tahoe=C2=A0 =C2= =A0 <br> Never attribute to malice what can adequately be explained by incompetence.= <br> <br> </blockquote></div> --000000000000752e1b065f89254e-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Should we add jitter to cron(8) ?
Author: Tomek CEDRO
Date: Thu, 05 Nov 2026 19:03
Date: Thu, 05 Nov 2026 19:03
118 lines
10478 bytes
10478 bytes
--0000000000009de9be065f8c28f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable +1 :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info On Thu, Nov 5, 2026, 16:28 Darren Henderson <darren.henderson@gmail.com> wrote: > Considering POLA I believe it would be better as an opt-in kind of thing > rather than opt-out. If people need it they can enable it. In general > opt-out changes should be avoided. Just flipping this around is likely to > cause many many unexpected issues for people who are not paying close > attention. > > On Wed, Nov 4, 2026 at 5:14=E2=80=AFPM Poul-Henning Kamp <phk@phk.freebsd= .dk> > wrote: > >> It seems that we have solid consensus for jittering by default, with >> option to disable. >> >> I had not spotted the -j/-J options to cron before I raised the >> issue, but given those, I dont see neither an need for code changes >> nor bike-sheds about their syntax. >> >> It is of course mathematically ideal to jitter [0=E2=80=A659[ seconds. >> >> But that would lead to some anomalies which I would rather avoid, >> for instance a "every minute" job being called twice within a few >> seconds. >> >> In power grids the relevant regulation time constants are typically >> below 10 and almost always less than 15 seconds. >> >> So on balance, I propose we change the cron default arguments to include >> >> -j 20 -J 20 >> >> That way there will be at least 40 seconds between "once per minute jobs= ". >> >> -- >> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 >> phk@FreeBSD.ORG | TCP/IP since RFC 956 >> FreeBSD committer | BSD since 4.3-tahoe >> Never attribute to malice what can adequately be explained by >> incompetence. >> >> --0000000000009de9be065f8c28f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div>+1 :-)</div><div><br></div><div data-smartmail=3D"gm= ail_signature">--<br>CeDeROM, SQ7MHZ, <a href=3D"http://www.tomek.cedro.inf= o">http://www.tomek.cedro.info</a></div></div><br><div class=3D"gmail_quote= gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Nov 5= , 2026, 16:28 Darren Henderson <<a href=3D"mailto:darren.henderson@gmail= .com">darren.henderson@gmail.com</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div dir=3D"ltr">Considering POLA I believ= e it would=C2=A0be better as an opt-in kind of thing rather than opt-out. I= f people need it they can enable it. In general opt-out changes should be a= voided. Just flipping this around=C2=A0is likely to cause many many unexpec= ted issues for people who are not paying close attention.</div><br><div cla= ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 4, 202= 6 at 5:14=E2=80=AFPM Poul-Henning Kamp <<a href=3D"mailto:phk@phk.freebs= d.dk" target=3D"_blank" rel=3D"noreferrer">phk@phk.freebsd.dk</a>> wrote= :<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.= 8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It seems that = we have solid consensus for jittering by default, with<br> option to disable.<br> <br> I had not spotted the -j/-J options to cron before I raised the<br> issue, but given those, I dont see neither an need for code changes<br> nor bike-sheds about their syntax.<br> <br> It is of course mathematically ideal to jitter [0=E2=80=A659[ seconds.<br> <br> But that would lead to some anomalies which I would rather avoid,<br> for instance a "every minute" job being called twice within a few= <br> seconds.<br> <br> In power grids the relevant regulation time constants are typically<br> below 10 and almost always less than 15 seconds.<br> <br> So on balance, I propose we change the cron default arguments to include<br= > <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 -j 20 -J 20<br> <br> That way there will be at least 40 seconds between "once per minute jo= bs".<br> <br> -- <br> Poul-Henning Kamp=C2=A0 =C2=A0 =C2=A0 =C2=A0| UNIX since Zilog Zeus 3.20<br= > phk@FreeBSD.ORG=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| TCP/IP since RFC 956<br> FreeBSD committer=C2=A0 =C2=A0 =C2=A0 =C2=A0| BSD since 4.3-tahoe=C2=A0 =C2= =A0 <br> Never attribute to malice what can adequately be explained by incompetence.= <br> <br> </blockquote></div> </blockquote></div> --0000000000009de9be065f8c28f0-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads