Provide a mechanism to remove a shard and also abandon its chunks

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding
    • Sharding 2019-09-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently there is no way to remove a shard from a cluster without migrating the chunks on that shard away to other shards. This makes it impossible to remove a shard which is entirely lost (because we can't move the chunks away because we don't have them). We also can't introduce a new repl set on top of that shard, because it'll have the wrong term.

      We should provide a mechanism to update the routing table such that:

      • A given shard is removed
      • Chunk info for chunks on that shard is removed
      • key space for sharded collections on that shard are re-allocated to other shards (so as to avoid leaving gaps in the routing table)
      • the shard in question is completely unavailable

      We will add a new option to the removeShard command that puts a shard into forced draining mode in order to provide the above.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Mira Carey
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: