Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-57056

[Backport MB-56700 to 7.2.1] Allow higher version nodes to be chosen as rebalance master during minor release upgrade

    XMLWordPrintable

Details

    Description

      ns-server follows the below mechanism to elect the index node rebalance master:

       

      ================

      ns_server gets the node info from each of the service nodes in the cluster and selects the max node across these node infos where the comparison function compares in order:

      1. Node priority
      2. Whether the node is in the keep set
      3. Whether the node is the orchestrator

       

      Logic is here:

       

      The idea is to allow the service use priority to pick a node running the latest code if it would like to do so. Ties are broken by picking a node that will remain in the cluster after the rebalance and then picking the orchestrator node if the service happens to be running on that node.

       

      In any case, to ensure that you always get the latest node you can bump your priority.

       

      I'd suggest giving yourself more space in the integers you use. E.g. for a release X.Y.Z-MPW you could compute:

      • W + P * 100 + Y * 10,000 + X * 1000,000

       

      So for 7.2.1-MP3 you'd get 7020103. You don't need to bump it all the time of course, just when you need to.

       

      ================

      Currently, Indexer is bumping up the priority every major version. 7.1.x is priority 6 and 7.2.0 is priority 7.

      const INDEXER_71_VERSION = 6

      const INDEXER_72_VERSION = 7

       

      For minor release version/MP patch release, if any planner related changes are done, those will not be picked up till the full cluster upgrade, or at least there is no guarantee. 

       

      The idea is to have enough spaces between major releases, so that the priority can be bumped up when required.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              yash.dodderi Yash Dodderi
              amit.kulkarni Amit Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty