http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients
You don't need a mongos unless you are sharding. Details vary with he driver you are using.
-- Max
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients
You don't need a mongos unless you are sharding. Details vary with he driver you are using.
-- Max
On Apr 29, 2012 4:40 PM, "Ed Brown" <edbro...@gmail.com> wrote:
I have a Mongo system set up so that it is sharded and contains a replica set. I want to load documents into the primary and query against the secondary. Do I need to have "mongos" processes for both the primary and the secondary system or do I just have mongos processes for the primary and when I want to query, I specify "slaveOK"?Thanks.---Ed Brown--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients
You don't need a mongos unless you are sharding. Details vary with he driver you are using.
-- Max
On Apr 29, 2012 4:40 PM, "Ed Brown" <edbro...@gmail.com> wrote:
I have a Mongo system set up so that it is sharded and contains a replica set. I want to load documents into the primary and query against the secondary. Do I need to have "mongos" processes for both the primary and the secondary system or do I just have mongos processes for the primary and when I want to query, I specify "slaveOK"?Thanks.---Ed Brown--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
Yes, if you pass slaveOK to the mongos it will send the queries to (arbitrarily selected) secondaries, in a very similar way to when you connect via a driver to a regular replica set.
Adam