@@ -40,10 +40,18 @@ The examples in this procedure use the following configuration:
40
40
- The replica set is running with a :setting:`data directory <dbpath>`
41
41
of ``/srv/mongodb``.
42
42
43
- 1. Shut down the current :term:`primary` instance in the replica set and
44
- then restart it in "standalone" mode running on a different port.
45
- Note that shutting down the primary will trigger a failover situation
46
- and another member in the replica set will become primary.
43
+ To change the size of the oplog for a replica set, use the following
44
+ procedure for every member of the set that may become primary.
45
+
46
+ 1. Shut down the :program:`mongod` instance and restart it in
47
+ "standalone" mode running on a different port.
48
+
49
+ .. note::
50
+
51
+ Shutting down the :term:`primary` member of the set will trigger
52
+ a failover situation and another member in the replica set will
53
+ become primary. In most cases, it is least disruptive to modify
54
+ the oplogs of all the secondaries before modifying the primary.
47
55
48
56
To shut down the current primary instance, use a command that
49
57
resembles the following:
@@ -78,9 +86,9 @@ The examples in this procedure use the following configuration:
78
86
a. In the :program:`mongo` shell, enter the following command to use the
79
87
``local`` database to interact with the oplog:
80
88
81
- .. code-block:: javascript
89
+ .. code-block:: javascript
82
90
83
- use local
91
+ use local
84
92
85
93
#. Use the :method:`db.collection.save()` operation to save the last
86
94
entry in the oplog to a temporary collection:
@@ -149,5 +157,5 @@ The examples in this procedure use the following configuration:
149
157
set *and* if it has successfully "caught up," then it will likely
150
158
become primary.
151
159
152
- #. Repeat this procedure for any other member of the replica set that
153
- * could* become primary.
160
+ #. Repeat this procedure for all other members of the replica set that
161
+ are or could become primary.
0 commit comments