You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/05/22 16:23:01 UTC

[GitHub] nickva opened a new pull request #536: Skip internal replication if changes already replicated

nickva opened a new pull request #536: Skip internal replication if changes already replicated
URL: https://github.com/apache/couchdb/pull/536
 
 
   ## Overview
   
   If minimum checkpointed sequence is greater or equal to source db sequence,
   do not start an internal replication task. The typical case is when checkpoint
   sequence is equal to the db sequence. Previously replication task was started
   always wrote a checkpoint document even if no database changes. This resulted
   in a flurry of writes during cluster startup.
   
   ## Testing recommendations
   
   * Start 3 node dev cluster with ./dev/run
   * Create a database
   * Stop cluster
   * Start cluster again
   * Connect with ./dev/remsh
   * After 10-20 seconds sample `couchdb.database_writes` statistic:`couch_stats:sample([couchdb,database_writes]).`
   * On master it would 128 or so
   * With this PR it would be 0
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services