File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ Settings
318
318
Set to false to prevent the overhead of journaling in situations
319
319
where durability is not required.
320
320
321
+ You can use :setting:`smallfiles` to reduce the size of the data
322
+ and journal files.
323
+
321
324
.. setting:: journalCommitInterval
322
325
323
326
*Default:* 100
@@ -501,9 +504,12 @@ Settings
501
504
*Default:* false
502
505
503
506
Set to ``true`` to modify MongoDB to use a smaller default data
504
- file size. Specifically, :setting:`smallfiles` quarters the initial
505
- file size for data files and limits the maximum file size to 512
506
- megabytes. Use :setting:`smallfiles` if you have a large number of
507
+ file size. Specifically, :setting:`smallfiles` reduces the initial
508
+ size for data files and limits them to 512
509
+ megabytes. Smallfiles will also reduce :term:`journal` files from
510
+ one gigabyte to 128 megabyte each.
511
+
512
+ Use :setting:`smallfiles` if you have a large number of
507
513
databases that each holds a small quantity of data.
508
514
509
515
.. setting:: syncdelay
Original file line number Diff line number Diff line change @@ -300,10 +300,15 @@ Glossary
300
300
A sequential, binary transaction used to bring the database into
301
301
a consistent state in the event of a hard shutdown. MongoDB
302
302
enables journaling by default for 64-bit builds of MongoDB
303
- version 2.0 and later. When enabled, MongoDB writes data first
304
- to the journal and after to the core data files. MongoDB commits
305
- to the Journal every 100ms, but this is configurable using the
306
- :setting:`journalCommitInterval` runtime option.
303
+ version 2.0 and newer. Journal files are pre-allocated and will
304
+ exist as three 1GB file in the data directory. To make journal
305
+ files smaller, use :setting:`smallfiles`.
306
+
307
+ When enabled,
308
+ MongoDB writes data first to the journal and after to the core
309
+ data files. MongoDB commits to the journal every 100ms and this
310
+ is configurable using the :setting:`journalCommitInterval`
311
+ runtime option.
307
312
308
313
.. seealso:: The :wiki:`Journaling` wiki page.
309
314
You can’t perform that action at this time.
0 commit comments