@@ -107,6 +107,17 @@ pre: |
107
107
action :
108
108
language : sh
109
109
code : mongo --port 27218
110
+ post : |
111
+ .. important::
112
+
113
+ While the member is a standalone, no writes are replicated to
114
+ this member nor are writes on this member replicated to the other
115
+ members of the replica set.
116
+
117
+ Ensure that any writes on this standalone do not conflict with
118
+ oplog writes that will be applied to the member when it rejoins
119
+ the replica set.
120
+
110
121
---
111
122
title : Restart ``mongod`` as a member of the replica set.
112
123
stepnum : 4
@@ -129,8 +140,10 @@ action:
129
140
member with its original configuration; that is, undo the
130
141
configuration changes made when starting as a standalone.
131
142
132
- For shard or config server members, be sure to remove the
133
- :parameter:`skipShardingConfigurationChecks` parameter.
143
+ .. tip: :
144
+
145
+ For shard or config server members, be sure to remove the
146
+ :parameter:`skipShardingConfigurationChecks` parameter.
134
147
135
148
When it has started, connect the :binary:`~bin.mongo` shell to the
136
149
restarted instance.
@@ -146,22 +159,25 @@ action:
146
159
title : Perform maintenance on the primary last.
147
160
stepnum : 5
148
161
ref : maintenance-on-primary
149
- pre : |
150
- To perform maintenance on the primary after completing maintenance
151
- tasks on all secondaries, use :method:`rs.stepDown()` in the
152
- :binary:`~bin.mongo` shell to step down the primary and allow one of
153
- the secondaries to be elected the new primary. Specify a 300 second
154
- waiting period to prevent the member from being elected primary again
155
- for five minutes:
156
- action :
157
- language : javascript
158
- code : rs.stepDown(300)
159
- post : |
160
- After the primary steps down, the replica set will :ref:`elect a new
161
- primary <replica-set-elections>`.
162
+ content : |
163
+
164
+ a. To perform maintenance on the primary after completing
165
+ maintenance tasks on all secondaries, connect a
166
+ :binary:`~bin.mongo` shell to the primary and use
167
+ :method:`rs.stepDown()` to step down the primary and allow one of
168
+ the secondaries to be elected the new primary. Specify a 300
169
+ second waiting period to prevent the member from being elected
170
+ primary again for five minutes:
162
171
163
- Restart :binary:`~bin.mongod` as a standalone instance, making the
164
- following configuration updates.
172
+ .. code-block:: javascript
173
+
174
+ rs.stepDown(300)
175
+
176
+ After the primary steps down, the replica set will :ref:`elect a
177
+ new primary <replica-set-elections>`.
178
+
179
+ b. Restart :binary:`~bin.mongod` as a standalone instance, making
180
+ the following configuration updates.
165
181
166
182
.. tabs::
167
183
@@ -205,6 +221,8 @@ post: |
205
221
setParameter:
206
222
skipShardingConfigurationChecks: true
207
223
224
+ .. include:: /includes/warning-bind-ip-security-considerations.rst
225
+
208
226
- id: command-line
209
227
name: Command-line Options
210
228
content: |
@@ -241,14 +259,27 @@ post: |
241
259
242
260
mongod --port 27218 --dbpath /srv/mongodb --bind_ip localhost,<ip address of the mongod host> --setParameter skipShardingConfigurationChecks=true
243
261
244
- .. include:: /includes/warning-bind-ip-security-considerations.rst
262
+ .. include:: /includes/warning-bind-ip-security-considerations.rst
245
263
246
- After performing all maintenance tasks, restart the
247
- :binary:`~bin.mongod` instance as a replica set member with its
248
- original configuration; that is, undo the configuration changes made
249
- when starting as a standalone.
264
+ c. Perform maintentance task on the now standalone.
250
265
251
- For shard or config server members, be sure to remove the
252
- :parameter:`skipShardingConfigurationChecks` parameter.
253
-
266
+ .. important::
267
+
268
+ While the member is a standalone, no writes are replicated to
269
+ this member nor are writes on this member replicated to the other
270
+ members of the replica set.
271
+
272
+ Ensure that any writes on this standalone do not conflict with
273
+ oplog writes that will be applied to the member when it rejoins
274
+ the replica set.
275
+
276
+ d. After performing all maintenance tasks, restart the
277
+ :binary:`~bin.mongod` instance as a replica set member with its
278
+ original configuration; that is, undo the configuration changes made
279
+ when starting as a standalone.
280
+
281
+ .. tip::
282
+
283
+ For shard or config server members, be sure to remove the
284
+ :parameter:`skipShardingConfigurationChecks` parameter.
254
285
...
0 commit comments