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

How to add a replica set's member into the sharding's shards

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      Hi, a sharding cluster has two shard groups:

      shards:

      { "_id" : "shard1", "host" : "shard1/10.136.16.67:27032,10.136.16.68:27032" } { "_id" : "shard2", "host" : "shard2/10.136.16.69:27032,10.136.16.70:27032" }

      The shard shard1 is consisted by three nodes: two mongod nodes and a arbiter node. Then, a new secondary nodes was added. Like below.

      shard1:
      PRIMARY> rs.config()
      {
      "_id" : "youninameshard1",
      "version" : 3,
      "members" : [

      { "_id" : 0, "host" : "10.136.16.67:27032", "priority" : 2 }

      ,

      { "_id" : 1, "host" : "10.136.16.68:27032" }

      ,

      { "_id" : 2, "host" : "10.136.16.68:37032", "arbiterOnly" : true }

      ,

      { "_id" : 3, "host" : "10.136.16.73:27032" }

      ]
      }

      Now, how to add the member 3 node into the shard shard1?

            Assignee:
            william.zola@10gen.com William Zola
            Reporter:
            popgo Jianfeng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: