Initial mongos configuration (mongos.conf)

I’m working through the lab and it shows us to use the following as a mongos.conf for sharding:

sharding:
configDB: m103-csrs/192.168.103.100:26001

But, when I look through the lecture notes example the mongos.conf shows the following:

sharding:
configDB: m103-csrs/192.168.103.100:26001,192.168.103.100:26002,192.168.103.100:26003

Would we not want to list all three (3) configuration servers that we created and started?

Thanks and let me know.

Blake

Hi @Blake_99043,

It is necessary to specify the config server replica set name, hostname and port of atleast one member of the config server replica set.
So, in the lab we can mention just one member of the replica Set.

Please refer to the following doc for more information about the configuration file options:

I hope it helps!!
Please let me know, if you still have any doubts.

Thanks,
Sonali