You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ILYA (JIRA)" <ji...@apache.org> on 2016/07/29 21:31:20 UTC

[jira] [Created] (COUCHDB-3088) restart of couch_replication_server causes a stampede

ILYA created COUCHDB-3088:
-----------------------------

             Summary: restart of couch_replication_server causes a stampede
                 Key: COUCHDB-3088
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3088
             Project: CouchDB
          Issue Type: Bug
            Reporter: ILYA


couch_replication_server scans all files in database_dir searching for files matching "_replicator.<number>.couch". For every _replication db it does gen_server:cast(Server, {resume_scan, DbName}). This creates a stampede effect and causes sharp load spikes on the replication cluster. The problem get worse if you migrate from older version of couchdb. In this case there is a logic which injects validation ddoc into every _replication db. Causing a spike in [couchdb, database_writes] metric. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)