Bug 218443 - sysutils/duply: periodic script needs anticongestion sleep
Summary: sysutils/duply: periodic script needs anticongestion sleep
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-07 02:54 UTC by Alan Somers
Modified: 2018-08-11 14:31 UTC (History)
3 users (show)

See Also:
michael: maintainer-feedback+
michael: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2018-01-10 00:16:46 UTC
Maintainer feedback?
Comment 3 michael 2018-01-10 08:03:53 UTC
still +
Comment 4 Walter Schwarzenfeld freebsd_triage 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