@@ -47,36 +47,39 @@ Oplog Size
47
47
----------
48
48
49
49
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.
51
51
52
52
For Unix and Windows systems
53
53
The default oplog size depends on the storage engine:
54
54
55
55
.. list-table::
56
- :widths: 30 30 20 20
56
+ :widths: 50 50
57
57
:header-rows: 1
58
58
59
59
* - Storage Engine
60
60
- Default Oplog Size
61
- - Lower Bound
62
- - Upper Bound
63
61
64
- * - :doc:`/core/inmemory `
62
+ * - :ref:`storage-wiredtiger `
65
63
66
- - 5% of physical memory
64
+ - 5% of free disk space
67
65
68
- - 50 MB
66
+ * - :ref:`storage-inmemory`
69
67
70
- - 50 GB
68
+ - 5% of physical memory
71
69
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.
76
79
77
80
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:
80
83
81
84
.. list-table::
82
85
:widths: 50 50
@@ -85,13 +88,13 @@ For 64-bit macOS systems
85
88
* - Storage Engine
86
89
- Default Oplog Size
87
90
88
- * - :doc:`/core/inmemory `
91
+ * - :ref:`storage-wiredtiger `
89
92
90
- - 192 MB of physical memory
91
-
92
- * - :doc:`/core/wiredtiger`
93
93
- 192 MB of free disk space
94
94
95
+ * - :ref:`storage-inmemory`
96
+
97
+ - 192 MB of physical memory
95
98
96
99
In most cases, the default oplog size is sufficient. For example, if an
97
100
oplog is 5% of free disk space and fills up in 24 hours of operations,
0 commit comments