GitHub user iilyak opened a pull request:

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

    Inject random delays in scan_all_dbs

    couch_replication_server scans filesystem to find all _replication
    databases. For every database found it does
    
        gen_server:cast(Server, {resume_scan, DbName})
    
    Extract independent process where we do gen_server:cast after a random 
delay.
    This effectively removes stampede and randomizes the order in which we
    process _replication databases.
    
    COUCHDB-3088

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

    $ git pull https://github.com/cloudant/couchdb-couch-replicator 
69914-insert-random-delays

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

    https://github.com/apache/couchdb-couch-replicator/pull/44.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 #44
    
----
commit 5715c5e25dba61442834b08d7d7202b185341a87
Author: ILYA Khlopotov <[email protected]>
Date:   2016-07-29T21:32:02Z

    Inject random delays in scan_all_dbs
    
    couch_replication_server scans filesystem to find all _replication
    databases. For every database found it does
    
        gen_server:cast(Server, {resume_scan, DbName})
    
    Extract independent process where we do gen_server:cast after a random 
delay.
    This effectively removes stampede and randomizes the order in which we
    process _replication databases.
    
    COUCHDB-3088

----


---
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.
---

Reply via email to