Skip to content

Commit 62771f1

Browse files
committed
DOCS-11475: add note about operations performed as a standalone
1 parent 978e87d commit 62771f1

File tree

1 file changed

+56
-25
lines changed

1 file changed

+56
-25
lines changed

source/includes/steps-perform-maintenance-task-on-replica-set-members.yaml

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ pre: |
107107
action:
108108
language: sh
109109
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+
110121
---
111122
title: Restart ``mongod`` as a member of the replica set.
112123
stepnum: 4
@@ -129,8 +140,10 @@ action:
129140
member with its original configuration; that is, undo the
130141
configuration changes made when starting as a standalone.
131142

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.
134147

135148
When it has started, connect the :binary:`~bin.mongo` shell to the
136149
restarted instance.
@@ -146,22 +159,25 @@ action:
146159
title: Perform maintenance on the primary last.
147160
stepnum: 5
148161
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:
162171
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.
165181
166182
.. tabs::
167183
@@ -205,6 +221,8 @@ post: |
205221
setParameter:
206222
skipShardingConfigurationChecks: true
207223
224+
.. include:: /includes/warning-bind-ip-security-considerations.rst
225+
208226
- id: command-line
209227
name: Command-line Options
210228
content: |
@@ -241,14 +259,27 @@ post: |
241259
242260
mongod --port 27218 --dbpath /srv/mongodb --bind_ip localhost,<ip address of the mongod host> --setParameter skipShardingConfigurationChecks=true
243261
244-
.. include:: /includes/warning-bind-ip-security-considerations.rst
262+
.. include:: /includes/warning-bind-ip-security-considerations.rst
245263
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.
250265
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.
254285
...

0 commit comments

Comments
 (0)