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

make better removeShard user exprience

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.5
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA

      removeShard now take following steps:

      1. decide the shard to be removed, issue sh.removeShard(shardName)
      2. wait all sharded chunks to be migrated to other shards
      3. when chunks migration finished, do movePrimary manually to migrate the unsharded data
      4. wait all the unsharded data to be migrated

      The core problem is that the user need to movePrimary manually to finish the removeShard process, maybe we can tell the MongoDB server where to movePrimary when run removeShard command, for example.

      sh.removeShard(shard0, [shard1, shard3])

      This is to say, I want to remove shard0, and the server can automatically remove the unsharded colletions' primary to [shard1, shard3] for me.

      So when removeShard, the user just need to issue a removeShard command, and then have a cup coffee, waiting the removeShard finish.

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            zyd_com@126.com Zhang Youdong
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: