GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/34
Better handling of multiple concurrent replications * Reduce checkpoint frequency from 5 to 30 seconds * Avoid calling replicator manager for ownership checks. During attempted checkpoints each replication made a gen_server call to replication manager to decide if replication should still be running on that node. Use a function instead. COUCHDB-2979 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-replicator couch-2979 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch-replicator/pull/34.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 #34 ---- commit 43f3c720811be0ad757cd9b9b823b30104b6913c Author: Nick Vatamaniuc <vatam...@gmail.com> Date: 2016-03-31T15:50:53Z Reduce checkpoint frequency from 5 to 30 seconds Use a macro to avoid hard-coding magic number in two places. COUCHDB-2979 commit 1a2eb18f0ed1a2dbca6dd6b346ae7e0f96deed95 Author: Nick Vatamaniuc <vatam...@gmail.com> Date: 2016-03-31T15:58:01Z Avoid calling replicator manager for ownership checks During attempted checkpoint each replication made a gen_server call to replication manager to decide if replication should still be running that node. The call is generally fast (10s to 100s of microseconds), however if replication manager is blocked, for example, fetching large filter functions, none of the replications could checkpoint & make progress. Now replications call the ownership function without going through a gen_server call. COUCHDB-2979 ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---