Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-44818

Change the balancerCollectionStatus command response format

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

      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.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: