@@ -175,6 +175,12 @@ maintain reasonable connection pool sizes. Adjust the connection pool
175
175
size to suit your use case, beginning at 110-115% of the typical number
176
176
of concurrent database requests.
177
177
178
+ When using the :ref:`WiredTiger storage engine <storage-wiredtiger>`,
179
+ the number of incoming connections to WiredTiger should be less than
180
+ or equal to the number of cores available on the machine.
181
+
182
+ .. TODO add guidance for MMAPv1
183
+
178
184
The :dbcommand:`connPoolStats` command returns information regarding
179
185
the number of open connections to the current database for
180
186
:program:`mongos` and :program:`mongod` instances in sharded clusters.
@@ -214,17 +220,12 @@ WiredTiger will experience negative performance. For information on
214
220
active operations, see the active read/write (``ar|aw``) column in the
215
221
:program:`mongostat` output.
216
222
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`.
223
+ WiredTiger's default configuration will use either 1GB or half of the
224
+ installed physical RAM for cache, whichever is larger. This size is tunable
225
+ through the :setting:`storage.wiredTiger.engineConfig.cacheSizeGB` setting, and
226
+ should be large enough to hold your entire :term:`working set`.
227
+
228
+ .. include:: /includes/fact-wiredtiger-cachesizegb.rst
228
229
229
230
.. seealso:: :ref:`prod-notes-concurrency`
230
231
0 commit comments