Ways to help investigating behavior of periodic scripts
yasu at utahime.org
Tue Oct 31 08:43:58 UTC 2017
From: Arthur Chance <freebsd at qeng-ho.org>
Subject: Re: Ways to help investigating behavior of periodic scripts
Date: Tue, 31 Oct 2017 08:02:50 +0000
> If you're using the pkg system (which most people do) then the periodic
> has at line 60
> sleep `jot -r 1 0 3600`
> which sleeps for a random time between 0 seconds and 1 hour. This is to
> avoid the "thundering herd" problem at the servers, and obviously can
> cause the completion time to jitter by up to an hour.
Yes, pkg is installed on my home server. So this is probably what I
would like to investigate. Thank you for letting me know.
More information about the freebsd-questions