Replica Set Name
- Last Updated: July 30, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.0
- Documentation
Attribute
ReplicaSetName (rsn)
Purpose
Specifies the name of the replica set against which the driver executes write operations. Providing a value for this option enables replica set failover for write operations.
Valid Values
replica_set_name
where:
replica_set_name
is the name of the replica set against which the driver performs write operations.
Notes
- When a value is specified for this option, the driver attempts to establish a connection to the primary node when a write operation is executed. If the primary node is unavailable, the driver repeats the discovery process until it finds the newly elected one or until the maximum number of retry attempts is met.
Default Value
No default value