/[base]
ViewVC logotype

Revision 317373


Jump to revision: Previous Next
Author: asomers
Date: Mon Apr 24 15:29:17 2017 UTC (7 years, 2 months ago)
Changed paths: 5
Log Message:
MFC r316342, r316358

r316342:
Consolidate random sleeps in periodic scripts

Multiple periodic scripts sleep for a random amount of time in order to
mitigate the thundering herd problem. This is bad, because the sum of
multiple uniformly distributed random variables approaches a normal
distribution, so the problem isn't mitigated as effectively as it would be
with a single sleep.

This change creates a single configurable anticongestion sleep. periodic
will only sleep if at least one script requires it, and it will never sleep
more than once per invocation. It also won't sleep if periodic was run
interactively, fixing an unrelated longstanding bug.

PR:		217055
PR:		210188
Reviewed by:	cy
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D10211

r316358:
Fix man page typo from r316342

Reported by:	rgrimes
MFC after:	20 days
X-MFC-With:	316342


Changed paths

Path Details
Directorystable/11/ modified , props changed
Directorystable/11/etc/defaults/periodic.conf modified , text changed
Directorystable/11/etc/periodic/daily/480.leapfile-ntpd modified , text changed
Directorystable/11/share/man/man5/periodic.conf.5 modified , text changed
Directorystable/11/usr.sbin/periodic/periodic.sh modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27