I am deploy a monodb sharding, I have deploy a replica set in three machines:
dev41:27017,dev42:27017,dev193:27017
and configsvr
in three machine:
dev41:27019,dev42:27019,dev193:27019
and also a mongos in machine:
dev41:28000
at last I try to add my replica into mongos:
mongo dev41:28000/admin
sh.addShard('rs0/dev41,dev42,dev193')
then I got errors:
{
"ok" : 0,
"errmsg" : "could not find host matching read preference { mode: \"primary\" } for set rs0",
"code" : 133
}