Mongodb v0.4.2 Mongo.Topology
Summary
Functions
Starts a new topology connection, which handles pooling and server selection for replica sets
Types
Functions
Starts a new topology connection, which handles pooling and server selection for replica sets.
Options
:database- REQUIRED: database for authentication and default:connect_timeout_ms- maximum timeout for connect:seeds- a seed list of hosts (without the “mongodb://“ part) within the cluster, defaults to["localhost:27017"]:type- a hint of the topology type, defaults to:unknown, seeinitial_type/0for valid values:set_name- the expected replica set name, defaults tonilto 10 seconds
Error Reasons
:single_topology_multiple_hosts- a topology of type :single was set but multiple hosts were given:set_name_bad_topology- a:set_namewas given but the topology was set to something other than:replica_set_no_primaryor:single