Skip to content

Commit 1af0792

Browse files
(DOCSP-28903): Clarify default oplog size bounds (#7374) (#7400)
* (DOCSP-28903): Clarify default oplog size bounds * edit * Update source/core/replica-set-oplog.txt * WIP * review feedback * simplify * reformatting * reformatting * remove page from other pr * standardize formatting * standardize order --------- Co-authored-by: jocelyn-mendez1 <[email protected]>
1 parent b47d9e3 commit 1af0792

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

source/core/replica-set-oplog.txt

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,39 @@ Oplog Size
4747
----------
4848

4949
When you start a replica set member for the first time, MongoDB creates
50-
an oplog of a default size if you do not specify the oplog size.
50+
an oplog of a default size if you do not specify the oplog size.
5151

5252
For Unix and Windows systems
5353
The default oplog size depends on the storage engine:
5454

5555
.. list-table::
56-
:widths: 30 30 20 20
56+
:widths: 50 50
5757
:header-rows: 1
5858

5959
* - Storage Engine
6060
- Default Oplog Size
61-
- Lower Bound
62-
- Upper Bound
6361

64-
* - :doc:`/core/inmemory`
62+
* - :ref:`storage-wiredtiger`
6563

66-
- 5% of physical memory
64+
- 5% of free disk space
6765

68-
- 50 MB
66+
* - :ref:`storage-inmemory`
6967

70-
- 50 GB
68+
- 5% of physical memory
7169

72-
* - :doc:`/core/wiredtiger`
73-
- 5% of free disk space
74-
- 990 MB
75-
- 50 GB
70+
The default oplog size has the following constraints:
71+
72+
- The minimum oplog size is 990 MB. If 5% of free disk space or
73+
physical memory (whichever is applicable based on your storage
74+
engine) is less than 990 MB, the default oplog size is 990 MB.
75+
76+
- The maximum default oplog size is 50 GB. If 5% of free disk space or
77+
physical memory (whichever is applicable based on your storage
78+
engine) is greater than 50 GB, the default oplog size is 50 GB.
7679

7780
For 64-bit macOS systems
78-
The default oplog size is 192 MB of either physical memory or free
79-
disk space depending on the storage engine:
81+
The default oplog size is 192 MB of either free disk space or
82+
physical memory depending on the storage engine:
8083

8184
.. list-table::
8285
:widths: 50 50
@@ -85,13 +88,13 @@ For 64-bit macOS systems
8588
* - Storage Engine
8689
- Default Oplog Size
8790

88-
* - :doc:`/core/inmemory`
91+
* - :ref:`storage-wiredtiger`
8992

90-
- 192 MB of physical memory
91-
92-
* - :doc:`/core/wiredtiger`
9393
- 192 MB of free disk space
9494

95+
* - :ref:`storage-inmemory`
96+
97+
- 192 MB of physical memory
9598

9699
In most cases, the default oplog size is sufficient. For example, if an
97100
oplog is 5% of free disk space and fills up in 24 hours of operations,

0 commit comments

Comments
 (0)