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

Change the balancerCollectionStatus command response format

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.3
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2019-12-02

    Description

      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
      }

       

      Attachments

        Activity

          People

            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: