mongodb - how does mongo select primary shard in cluster? -


 have created 3 mongod , 2 mongos , single config server.  while in  sh.printshardingstatus().   says node primary one. 

how mongodb select primary shard hold un shard collection , can change primary one.

the primary shard in new cluster first shard. see manual


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -