- Replication >
- Replication Reference >
- Replica Set Configuration
Replica Set Configuration¶
On this page
You can access the configuration of a replica set using the
rs.conf()
method or the replSetGetConfig
command.
Replica Set Configuration Document Example¶
The following document provides a representation of a replica set configuration document. The configuration of your replica set may include only a subset of these settings:
For a description of the replica set configuration settings, see Replica Set Configuration Fields.
To modify the configuration for a replica set, use the
rs.reconfig()
method, passing a configuration document to the
method. See rs.reconfig()
for more information.