You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/06/02 11:03:08 UTC

[GitHub] [couchdb-documentation] wlthomson opened a new pull request #556: Add max_history to replicator config

wlthomson opened a new pull request #556:
URL: https://github.com/apache/couchdb-documentation/pull/556


   ## Overview
   
   Adds `max_history` parameter to documentation for configuring replicator database.
   
   Cross-referencing with main CouchDB repo shows that `max_history` is a configurable parameter in CouchDB 3.1. (see [couch_replicator_scheduler#L238](https://github.com/apache/couchdb/blob/4e64f5b492990b03f7f58a47ec173d048a3f381f/src/couch_replicator/src/couch_replicator_scheduler.erl#L238)). 
   
   While researching CouchDB's offline-first functionality in environments of low and/or intermittent connectivity, one of the main issues was the possible length of the delay between replication jobs due to the exponential back-off algorithm. In environments where users have unreliable and intermittent connectivity, it is important that replication restarts quickly when network connectivity is established.
   
   One possible solutions is given in an issue in the main repo [here](https://github.com/apache/couchdb/issues/1399). The solution involves adjusting the ` [replicator]max_history` parameter to reduce the maximum back-off factor used to calculate the delay before a job is restarted. I noticed that this parameter was not included in the public documentation, and thought it would be helpful to include it for users wanting to use CouchDB in environments where it is helpful to have shorter delays between replication jobs.
   
   ## Testing recommendations
   
   `make check`.
   
   ## GitHub issue number
   
   #552.
   
   ## Related Pull Requests
   
   N/A.
   
   ## Checklist
   
   - [ ] Update [rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script) with the commit hash once this PR is rebased and merged


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-documentation] janl commented on pull request #556: Add max_history to replicator config

Posted by GitBox <gi...@apache.org>.
janl commented on pull request #556:
URL: https://github.com/apache/couchdb-documentation/pull/556#issuecomment-637512280


   thanks! :)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-documentation] janl merged pull request #556: Add max_history to replicator config

Posted by GitBox <gi...@apache.org>.
janl merged pull request #556:
URL: https://github.com/apache/couchdb-documentation/pull/556


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org