Subject: [mongodb-user] Re: MongoDB 3.4 Sharded Cluster



Thanks Jacek.

On Wednesday, August 9, 2017 at 12:39:58 PM UTC-10, Jacek Radzikowski wrote:On Wednesday, August 9, 2017 at 6:19:45 PM UTC-4, Alan wrote:Can someone show me simple step by step instructions of how to setup a MongoDB sharded cluster in Mongo 3.4.  From what I understand, Mongo 3.4 has a different way of setting it up compared to previous versions.  So far I tried the following but it doesn't seem to work.

mongod --configsvr --dbpath cfg0 --port 26050 --fork --logpath log.cfg0 --logappend
mongod --configsvr --dbpath cfg1 --port 26051 --fork --logpath log.cfg1 --logappend
mongod --shardsvr --replSet a --dbpath a0 --logpath log.a0 --port 27000 --fork --logappend --smallfiles --oplogSize 50
mongod --shardsvr --replSet a --dbpath a1 --logpath log.a1 --port 27001 --fork --logappend --smallfiles --oplogSize 50
mongos --configdb m034:26050,m034:26051,m034:26052 --fork --logapend --logpath log.mongos0
FailedToParse: mirrored config server connections are not supported; for config server replica sets be sure to use the replica set connection string
try 'mongos --help' for more information

You have to set up config server as a replica set:
mongod --configsvr --dbpath cfg0 --port 26050 --fork --logpath log.cfg0 --logappend --replSet "rs0"
Other nodes in the config server RS also need to be called with replSet parameter.

invocation of mongo will look like this:
mongos --configdb rs-/m034:26050,m034:26051,m034:26052 --fork --logapend --logpath log.mongos0

Jacek.

 

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe ...

from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c6fbfdd2-ac80-483f-9ff2-c151b09a34b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting