Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10277

On 'downnode', lots of wasteful mutations are done to ZK



    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5.3, 5.5.4, 6.0.1, 6.2.1, 6.3, 6.4.2
    • 6.5.1, 7.0
    • SolrCloud


      When a node restarts, it submits a single 'downnode' message to the overseer's state update queue.

      When the overseer processes the message, it does way more writes to ZK than necessary. In our cluster of 48 hosts, the majority of collections have only 1 shard and 1 replica. So a single node restarting should only result in ~1/40th of the collections being updated with new replica states (to indicate the node that is no longer active).

      However, the current logic in NodeMutator#downNode always updates every collection. So we end up having to do rolling restarts very slowly to avoid having a severe outage due to the overseer having to do way too much work for each host that is restarted. And subsequent shards becoming leader can't get processed until the `downnode` message is fully processed. So a fast rolling restart can result in the overseer queue growing incredibly large and nearly all shards winding up in a leader-less state until that backlog is processed.

      The fix is a trivial logic change to only add a ZkWriteCommand for collections that actually have an impacted replica.


        1. SOLR-10277.patch
          36 kB
          Shalin Shekhar Mangar
        2. SOLR-10277.patch
          35 kB
          Varun Thacker
        3. SOLR-10277-5.5.3.patch
          10 kB
          Joshua Humphries

        Issue Links



              dragonsinth Scott Blum
              jhump Joshua Humphries
              3 Vote for this issue
              10 Start watching this issue