Re: SPLITSHARD Working

2017-05-08 Thread Amrit Sarkar
Vrinda, The expected behavior if parent shard 'shardA' resides on node'1', node'2' ... node'n' and do a SPLITSHARD on it. the child shards, shardA_0 and shardA_1 will reside on node'1', node'2' ... node'n'. shardA --- node'1' (leader) & node'2' (replica) after splitshard; shardA --- no

Re: SPLITSHARD Working

2017-05-08 Thread vrindavda
Thanks I go it. But I see that distribution of shards and replicas is not equal. For Example in my case : I had shard 1 and shard2 on Node 1 and their replica_1 and replica_2 on Node 2. I did SHARDSPLIT on shard1 to get shard1_0 and shard1_1 such that and shard1_0_replica0 are created on No

Re: SPLITSHARD Working

2017-05-08 Thread Shalin Shekhar Mangar
No, split always happens on the original node. But you can move the sub-shard leader to a new node once the split is complete by using AddReplica/DeleteReplica collection API. On Mon, May 8, 2017 at 1:02 PM, vrindavda wrote: > Hi, > > I need to SPLITSHARD such that one split remains on the same m