So how does one use rockmongo to connect to a mongo sharded setup with replicasets?
- by Tom
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?