Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 04:23:41 -0700 (PDT)
From:      <brian@FreeBSD.org>
To:        brett@lariat.org, brian@FreeBSD.org, freebsd-bugs@FreeBSD.org, brian@FreeBSD.org
Subject:   Re: conf/20498: All FreeBSD systems trigger massive late-night activity at the same times
Message-ID:  <200008101123.EAA99038@freefall.freebsd.org>

next 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.


Responsible-Changed-From-To: freebsd-bugs->brian
Responsible-Changed-By: brian
Responsible-Changed-When: Thu Aug 10 04:21:46 PDT 2000
Responsible-Changed-Why: 
I changed my mind.  This can be resolved with a combination of cron and 
periodic changes

http://www.freebsd.org/cgi/query-pr.cgi?pr=20498


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?200008101123.EAA99038>