Date: Thu, 10 Aug 2000 14:46:28 +0100 From: Brian Somers <brian@Awfulhak.org> To: brian@FreeBSD.ORG Cc: brett@lariat.org, freebsd-bugs@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: conf/20498: All FreeBSD systems trigger massive late-night activity at the same times Message-ID: <200008101346.OAA04696@hak.lan.Awfulhak.org> In-Reply-To: Message from <brian@FreeBSD.ORG> of "Thu, 10 Aug 2000 04:23:41 PDT." <200008101123.EAA99038@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: All FreeBSD systems trigger massive late-night activity at the same times > > State-Changed-From-To: closed->open > State-Changed-By: brian > State-Changed-When: Thu Aug 10 04:21:46 PDT 2000 > State-Changed-Why: > I think it might be nice to have a mechanism whereby cron runs > maybe-periodic every 15 minutes between (say) 2:00 and 23:00. The > maybe-periodic script checks a touch file that indicates when the > last such periodic actually ran (say /var/db/periodic-{dai,week,month}ly.run. > If the file has a date of yesterday or before (or this day last week > or month depending on the periodic argument), the script picks a > random number between 1 and 24 (or 1 and 7 or 1 and 31) . If the > file is more than that number of hours (or days) old, the touch-file > is re-touched and the periodic run is invoked. > > This resolves the random-start-time issue, and also handles systems > that are shut down every night. > > I'll implement this if nobody objects. With a smarter algorithm (that actually works) and a default of the same behaviour as we see now. -- Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008101346.OAA04696>