A comma-separated list of member nodes in your cluster to which the driver attempts to connect. Specifying a value for this option enables connect time failover and load balancing. For details, see "Using Failover in a Cluster."
Valid Values
host_name | IP_address:port_number [, ...]
where:
host_name
is the name of a server for a member node in the replica-set cluster to which you want to connect.
IP_address
is the IP address of the server for a member node in the replica-set cluster to which you want to connect. The IP address can be specified in IPv4 or IPv6 format. Note that IPv6 values must be wrapped in double-quotation marks. See "Using IP Addresses" for details about these formats.
port_number
is the port number of the server listener for the corresponding member node.
When specifying a value for this option, the driver randomly selects from the list for a server node to first attempt a connection. If that connection fails, the driver again randomly selects another server node from this list until all servers in the list have been tried or a connection is successfully established.