mongodb - How start Mongo Instance in sharded cluster -
i want deploy sharded cluster using mongodb manual. first created 3 config servers. mongod --configsvr --dbpath /data/configdb1 --port 27019 , mongod --configsvr --dbpath /data/configdb2 --port 27019 , mongod --configsvr --dbpath /data/configdb3 --port 27019
but in second step start mongos instances find command mongos --configdb cfg0.example.net:27019,cfg1.example.net:27019,cfg2.example.net:27019
but can't understand meaning of
cfg0.example.net cfg1.example.net cfg2.example.net
so please explain meaning of above command , how can use according hostname?
please check "deploy sharded cluster", cfg[0-3].example.net means hostnames of 3 config servers, each of mongos server should started config servers configured.
Comments
Post a Comment