Change the balancerCollectionStatus command response format

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-12-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The current command response format is:

       

       

      {
          status: balanced|draining|zoneViolation|chunksImbalance
      }
      

       

      However, the balanced response might be confusing because an user could've configured a big number of chunks in a zone regardless of the number of shards in that zone, and this would show an uneven distribution of chunks on the cluster, which is completely valid and does not require any action on the part of the balancer.

      A better approach would be to add a boolean that indicates the fulfillment of the balancer policies, so there is no action required from the balancer:

       

      {
          balancerCompliant: true|false,
          firstComplianceViolation: draining|zoneViolation|chunksImbalance // only if balancerCompliant is false
      }

       

            Assignee:
            Marcos José Grillo Ramirez
            Reporter:
            Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: