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
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---