So how does one use rockmongo to connect to a mongo sharded setup with replicasets?
Posted
by
Tom
on Server Fault
See other posts from Server Fault
or by Tom
Published on 2012-06-01T09:21:12Z
Indexed on
2012/06/01
10:43 UTC
Read the original article
Hit count: 439
mongodb
I try to use rockmongo, to connect to our cluster.
Our setup is a setup of two shards each consisting of a replicaset. I try to connect to the mongos instance and while rockmongo connects I get an error when trying to list the dbs:
Execute failed:not master function (){ return db.getCollectionNames(); }
This has something to do with the replica sets and everybody points to:
$MONGO["servers"][$i] = array("replicaSet" => "xxxxx");
This is all fine, but I have two replicasets and as far as I understand I should connect to the mongos instance and not directly to the members of the set.
So how does one use rockmongo to connect to a mongo sharded setup with replicasets?
© Server Fault or respective owner