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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -