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

On demand index redistribution

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Cheshire-Cat
    • Neo.next
    • secondary-index
    • None
    • 1

    Description

      MB-29222 allows for indexes to be redistributed in the cluster on every rebalance operation. There is an opt-in setting(MB-41068) for users to choose this behavior.

      It would be useful to allow on-demand ability for users to perform manual index redistribution whenever the cluster is out of balance e.g. some indexes get dropped, some indexes grow large in size etc.

      This can be added as a n1ql command or a REST API.

      Attachments

        Issue Links

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

          Activity

            The on demand rebalance can be done manually via CLI

            1. Enable redistribute index setting and wait for 10 seconds.

            curl -X POST -u Administrator:password http://localhost:8091/settings/indexes -d redistributeIndexes=true
            

            2. Trigger rebalance from CLI

            ./couchbase-cli rebalance -c http://localhost:8091 -u Administrator -p password
            

            3. Disable redistribute index setting

            curl -X POST -u Administrator:password http://localhost:8091/settings/indexes -d redistributeIndexes=false
            

            deepkaran.salooja Deepkaran Salooja added a comment - The on demand rebalance can be done manually via CLI 1. Enable redistribute index setting and wait for 10 seconds. curl -X POST -u Administrator:password http://localhost:8091/settings/indexes -d redistributeIndexes=true 2. Trigger rebalance from CLI ./couchbase-cli rebalance -c http://localhost:8091 -u Administrator -p password 3. Disable redistribute index setting curl -X POST -u Administrator:password http://localhost:8091/settings/indexes -d redistributeIndexes=false

            People

              jeelan.poola Jeelan Poola
              deepkaran.salooja Deepkaran Salooja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty