Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-89

If you manually increase number of replicas, operator will rebalance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: not-targeted
    • Component/s: operator
    • Labels:

      Description

      If you increase the number of replicas, then you have to rebalance to create them.

      If you manually increase the number of replicas of a bucket, the operator will return it to its original value.
      However the logic for rebalance is naive and just checks if one is required, so if you increase replicas then the operator will rebalance.
      There should probably be a quick check to see if the value for the replicas of each bucket is the same as the one specified in the cluster definition.

      In that case the operator can revert it to its original value and should do so without incurring a rebalance.

        Attachments

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

          Activity

          Hide
          mikew Mike Wiederhold [X] (Inactive) added a comment -

          Users shouldn't be editing buckets and we would need to do a lot of checking to see whether or not the rebalance is actually needed because it's possible that the replica count was changed manually, but that the cluster is also actually unbalanced. I'm going to put this on the bug-backlog for now since I don't think it will commonly affect users.

          Show
          mikew Mike Wiederhold [X] (Inactive) added a comment - Users shouldn't be editing buckets and we would need to do a lot of checking to see whether or not the rebalance is actually needed because it's possible that the replica count was changed manually, but that the cluster is also actually unbalanced. I'm going to put this on the bug-backlog for now since I don't think it will commonly affect users.
          Hide
          mikew Mike Wiederhold [X] (Inactive) added a comment -

          Description for release notes:

          Known Issue: Users should always change cluster configurations through Kubernetes. If configuration is directly changed on the cluster then the operator will revert those changes. If a buckets replicas are increased then the operator may rebalance the cluster before reverting the buckets changes.

          Workaround: Users should always change cluster configuration through the operator.

          Show
          mikew Mike Wiederhold [X] (Inactive) added a comment - Description for release notes: Known Issue: Users should always change cluster configurations through Kubernetes. If configuration is directly changed on the cluster then the operator will revert those changes. If a buckets replicas are increased then the operator may rebalance the cluster before reverting the buckets changes. Workaround: Users should always change cluster configuration through the operator.
          Hide
          eric.schneider Eric Schneider (Inactive) added a comment -

          Description for release notes:

          Summary: Known Issue If you manually increase the number of replicas of a bucket, then the Operator may rebalance the cluster before reverting the bucket's changes.

          Workaround: You should always change the CouchbaseCluster configuration through the Operator.
          If you change the CouchbaseCluster configuration directly on the cluster (such as through the Couchbase Server Web Console), then the Operator will revert those changes.

          Show
          eric.schneider Eric Schneider (Inactive) added a comment - Description for release notes: Summary: Known Issue If you manually increase the number of replicas of a bucket, then the Operator may rebalance the cluster before reverting the bucket's changes. Workaround : You should always change the CouchbaseCluster configuration through the Operator. If you change the CouchbaseCluster configuration directly on the cluster (such as through the Couchbase Server Web Console), then the Operator will revert those changes.

            People

            Assignee:
            simon.murray Simon Murray
            Reporter:
            matt.carabine Matt Carabine
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty