Bug 218443

Summary: sysutils/duply: periodic script needs anticongestion sleep
Product: Ports & Packages Reporter: Alan Somers <asomers>
Component: Individual Port(s)Assignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Some People CC: dbaio, michael, w.schwarzenfeld
Priority: --- Flags: michael: maintainer-feedback+
michael: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description Alan Somers freebsd_committer freebsd_triage 2017-04-07 02:54:43 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 michael 2017-04-07 07:30:12 UTC
Good idea
Comment 2 Walter Schwarzenfeld 2018-01-10 00:16:46 UTC
Maintainer feedback?
Comment 3 michael 2018-01-10 08:03:53 UTC
still +
Comment 4 Walter Schwarzenfeld 2018-01-10 08:10:57 UTC
svn-diff in bug # 218447.
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-08-11 14:25:17 UTC
A commit references this bug:

Author: dbaio
Date: Sat Aug 11 14:24:50 UTC 2018
New revision: 476919
URL: https://svnweb.freebsd.org/changeset/ports/476919

Log:
  sysutils/duply: Update to 2.1

  - Enable random by default in periodic script and anticongestion function [1]
    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.

  Changes:	http://duply.net/wiki/index.php/Duply-Changelog

  PR:		218443 [1]
  PR:		230308
  Submitted by:	Nathan <ndowens@yahoo.com>
  Reported by:	asomers [1]
  Approved by:	michael@ranner.eu (maintainer)

Changes:
  head/sysutils/duply/Makefile
  head/sysutils/duply/distinfo
  head/sysutils/duply/files/periodic_duply.in