[ 
https://issues.apache.org/jira/browse/COUCHDB-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15260804#comment-15260804
 ] 

ASF GitHub Bot commented on COUCHDB-3006:
-----------------------------------------

GitHub user nickva opened a pull request:

    https://github.com/apache/couchdb-couch-replicator/pull/37

    Add jittered delay during replication error handling

    For one-to-many replications, when source fails, it
    can create a stampede effect. A jittered delay is
    used to avoid that.
    
    Delay is random, in a range proportional to
    current number of replications, with a maximum of
    1 minute.
    
    Seed random number generator within each
    replication process with a non-deterministic value,
    otherwise the same sequence of delays is generated
    for all replications.
    
    Jira: COUCHDB-3006

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-couch-replicator couchdb-3006

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch-replicator/pull/37.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #37
    
----
commit 0f9bc69f37ae970371af64525ae6c77332e60a07
Author: Nick Vatamaniuc <[email protected]>
Date:   2016-04-27T19:21:14Z

    Add jittered delay during replication error handling
    
    For one-to-many replications, when source fails, it
    can create a stampede effect. A jittered delay is
    used to avoid that.
    
    Delay is random, in a range proportional to
    current number of replications, with a maximum of
    1 minute.
    
    Seed random number generator within each
    replication process with a non-deterministic value,
    otherwise the same sequence of delays is generated
    for all replications.
    
    Jira: COUCHDB-3006

----


> Source failure in one source to many target replications causes a stampede
> --------------------------------------------------------------------------
>
>                 Key: COUCHDB-3006
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3006
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Nick Vatamaniuc
>
> For multiple replications from a single source to multiple targets. If source 
> fails, all replications post an error state back their replication document 
> and attempt to restart. This creates a stampede effect and causes sharp load 
> spikes on the replication cluster.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to