What's the purpose of the command in mongodb? -


i new mongodb , have following query follows "db.runcommand( { addshard : "sf103", maxsize:100000 } );" why using sf103 if use command in environment getting following errors>>> db.runcommand( { addshard : "sf103", maxsize:100000 } ); { "ok" : 0, "errmsg" : "couldn't connect new shard dbconnectionpool: connect failed sf103 : " } >

here, sf103 represents what???? please me.......

advance thanks, kumar.

addshard takes first parameter "serverhostname[:port]". sf103 example host name specified. mongo host want add cluster. please read doc understand how configure mongo cluster. mongo sharded cluster config

--sai


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -