File tree Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -214,17 +214,12 @@ WiredTiger will experience negative performance. For information on
214
214
active operations, see the active read/write (``ar|aw``) column in the
215
215
:program:`mongostat` output.
216
216
217
- If you run :program:`mongod` in a container (e.g. ``lxc``, ``cgroups``,
218
- Docker, etc.) that does *not* have access to all of the RAM available
219
- in a system, you must set the
220
- :setting:`wiredTiger.engineConfig.cacheSizeGB` to a value less than the
221
- amount of RAM available in the container. The exact amount depends on
222
- the other processes running in the container.
223
-
224
- The size of the WiredTiger cache should be sufficient to hold the
225
- entire working set for the :program:`mongod`. To adjust the size of the
226
- WiredTiger cache, see
227
- :setting:`storage.wiredTiger.engineConfig.cacheSizeGB`.
217
+ WiredTiger's default configuration will use either 1GB or half of the
218
+ installed physical RAM for cache, whichever is larger. This size is tunable
219
+ through the :setting:`storage.wiredTiger.engineConfig.cacheSizeGB` setting, and
220
+ should be large enough to hold your entire :term:`working set`.
221
+
222
+ .. include:: /includes/fact-wiredtiger-cachesizegb.rst
228
223
229
224
.. seealso:: :ref:`prod-notes-concurrency`
230
225
Original file line number Diff line number Diff line change
1
+ The default value for this setting is optimized for a single :program: `mongod `
2
+ instance per node. If a single node contains multiple instances, then you should
3
+ change :setting: `storage.wiredTiger.engineConfig.cacheSizeGB ` for each instance
4
+ to a value that is large enough to encompass the entire working dataset,
5
+ but that also leaves room for the other :program: `mongod ` instances.
6
+
7
+ If you run :program: `mongod ` in a container (e.g. ``lxc ``, ``cgroups ``,
8
+ Docker, etc.) that does *not * have access to all of the RAM available
9
+ in a system, you must set the
10
+ :setting: `storage.wiredTiger.engineConfig.cacheSizeGB ` to a value less than the
11
+ amount of RAM available in the container. The exact amount depends on
12
+ the other processes running in the container.
Original file line number Diff line number Diff line change @@ -1573,7 +1573,9 @@ description: |
1573
1573
1574
1574
Defines the maximum size of the cache that WiredTiger will use for
1575
1575
all data. Ensure that {{role}} is sufficient to hold the entire
1576
- working set for the {{program}} instance.
1576
+ :term:`working set` for the {{program}} instance.
1577
+
1578
+ .. include:: /includes/fact-wiredtiger-cachesizegb.rst
1577
1579
---
1578
1580
program : mongod
1579
1581
name : wiredTigerCheckpointDelaySecs
You can’t perform that action at this time.
0 commit comments