Skip to content

Commit 2fcb0af

Browse files
author
Sam Kleinman
committed
DOCS-246 counter edits
1 parent 50c7c9a commit 2fcb0af

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

source/core/replication.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ on the :term:`primary` and then records the operations on the primary's
279279
oplog. The :term:`secondary` members then replicate this log and apply
280280
the operations to themselves in an asynchronous process. All replica set
281281
members contain a copy of the oplog, allowing them to maintain the
282-
current state of the database. The oplog is an :term:`idempotent` log.
282+
current state of the database. Operations in the oplog are :term:`idempotent`.
283283

284284
By default, the size of the oplog is as follows:
285285

@@ -296,15 +296,16 @@ By default, the size of the oplog is as follows:
296296
the oplog.
297297

298298
Before oplog creation, you can specify the size of your oplog with the
299-
:setting:`oplogSize` option. Once the oplog is created, you can only
300-
change the size of the oplog by using the :doc:`/tutorial/change-oplog-size` tutorial.
299+
:setting:`oplogSize` option. After you start a replica set member for
300+
the first time, you can only change the size of the oplog by using the
301+
:doc:`/tutorial/change-oplog-size` tutorial.
301302

302303
In most cases, the default oplog size is sufficient. For example, if an
303304
oplog that is 5% of free disk space fills up in 24 hours of operations, then
304305
secondaries can stop copying entries from the oplog for 24 hours before
305-
they require full resyncing. This example describes a
306-
very high-volume member. In many circumstances, the default oplog can
307-
hold days of operations.
306+
they require full resyncing. However, most replica sets have much
307+
lower operation volumes, and their oplogs can hold a much larger
308+
number of operations.
308309

309310
The following factors affect how MongoDB uses space in the oplog:
310311

source/tutorial/change-oplog-size.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,18 @@ The examples in this procedure use the following configuration:
4040
- The replica set is running with a :setting:`data directory <dbpath>`
4141
of ``/srv/mongodb``.
4242

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

4856
To shut down the current primary instance, use a command that
4957
resembles the following:
@@ -78,9 +86,9 @@ The examples in this procedure use the following configuration:
7886
a. In the :program:`mongo` shell, enter the following command to use the
7987
``local`` database to interact with the oplog:
8088

81-
.. code-block:: javascript
89+
.. code-block:: javascript
8290

83-
use local
91+
use local
8492

8593
#. Use the :method:`db.collection.save()` operation to save the last
8694
entry in the oplog to a temporary collection:
@@ -149,5 +157,5 @@ The examples in this procedure use the following configuration:
149157
set *and* if it has successfully "caught up," then it will likely
150158
become primary.
151159

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

Comments
 (0)