Hi Team,
I’m a beginner in Mongodb, so I need to perform sharding in the UAT server so First explain what I have. I have 2 separate server with Linux centos OS so I installed MongoDB 4.2.24. I tried to open the Mongos because of need to enable the sharding but I getting error in ip. Please find the error below:
sudo mongos -f /etc/mongos.conf
FailedToParse: invalid url [172.28.129.131:27017,172.28.136.157:27017]
try ‘mongos --help’ for more information again and again getting same error tell me the proper way
so intially mongos.conf file not there so I created a mongos.conf file with below code:
systemLog:
destination: file
path: “/var/log/mongos/mongos.log”
processManagement:
fork: true
net:
bindIp: 0.0.0.0
port: 27017
sharding:
configDB: configReplSet/configServer1:27017,configServer2:27017
then also getting same error only so I need to enable the shadring for the collection so I need to open the mongos and give a clustered nodes IP so how to do that?
Thanks & Regards
Aravind