Implement serverStatus section with active migrations

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 18 (08/05/16), Sharding 2016-08-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Implement an optional serverStatus section, available both on the config server and on the shards, which returns information about all the active chunk migrations. This section will be used by support and possibly by the balancer when it resumes from primary stepdown.

      On the shards, this serverStatus section should look like this (and should be placed under the optional sharding section):

      sharding: {
      	migrations: [
      		{ source: ShardId,
                        sourceHost: Host:Port,
                        destination: ShardId,
                        destinationHost: Host:Port,
                        chunk: { min: <MinKey>, max: <MaxKey> },
                        phase: String, one of <INIT, CATCHUP, CRITICAL SECTION>,
      		},
      		...
      	]
      }
      

      On the config server, the section should be the union of all migrations across all shards.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: