|Summary:||net/pwhois: periodic script needs anticongestion sleep|
|Product:||Ports & Packages||Reporter:||Alan Somers <asomers>|
|Component:||Individual Port(s)||Assignee:||Ryan Steinmetz <zi>|
|Severity:||Affects Some People||CC:||w.schwarzenfeld|
Description Alan Somers 2017-04-07 03:01:57 UTC
Periodic scripts that hit external servers can cause a "thundering herd" problem, whereby many systems' periodic scripts run at the same time, and overload the server. To prevent this, such scripts should sleep for a random amount of time before hitting the external server. After r316432, there is a common anticongestion function to handle this. For an example of how to use it, see https://bugs.freebsd.org/bugzilla/attachment.cgi?id=181374&action=diff
Comment 1 Walter Schwarzenfeld 2018-01-10 00:13:23 UTC
Comment 2 Ryan Steinmetz 2018-01-10 01:07:22 UTC
Please create a diff.
Comment 3 Alan Somers 2018-01-10 01:12:50 UTC
I don't use pwhois myself. I just found the problem by grepping, after I had noticed it in a different port. So I don't have a diff for the pwhois port. See the link below for an example of how I fixed it in bsdstats.