|
Most drivers have been updated to provide ways to connect to a replica set. In general, this is very similar to how the drivers support connecting to a replica pair. Instead of taking a pair of hostnames, the drivers will typically take a comma separated list of host[:port] names. This is a seed host list; it need not be every member of the set. The driver then looks for the primary from the seeds. The seed members will report back other members of the set that the client is not aware of yet. Thus we can add members to a replica set without changing client code. With ShardingWith sharding, the client connects to a mongos process. The mongos process will then automatically find the right member(s) of the set. See Also
|

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus