File tree Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Original file line number Diff line number Diff line change @@ -129,25 +129,6 @@ inserted into the database. Consider the following possible causes:
129
129
file that may be 90% empty. For most larger databases, unused
130
130
allocated space is small compared to the database.
131
131
132
- On Unix-like systems, :program:`mongod` preallocates an additional data file and
133
- initializes the disk space to ``0``. Preallocating data files in
134
- the background prevents significant delays when a new database file
135
- is next allocated.
136
-
137
- You can disable preallocation by setting
138
- :setting:`~storage.preallocDataFiles` to ``false``. However do not
139
- disable :setting:`~storage.preallocDataFiles` for production
140
- environments: only use :setting:`~storage.preallocDataFiles` for
141
- testing and with small data sets where you frequently drop
142
- databases.
143
-
144
- On Linux systems you can use ``hdparm`` to get an idea of how costly
145
- allocation might be:
146
-
147
- .. code-block:: sh
148
-
149
- time hdparm --fallocate $((1024*1024)) testfile
150
-
151
132
- The :term:`oplog`.
152
133
153
134
If this :program:`mongod` is a member of a replica set, the data
Original file line number Diff line number Diff line change @@ -717,20 +717,6 @@ post: |
717
717
The {{role}} option is available only for :program:`mongod`.
718
718
---
719
719
program : conf
720
- name : storage.preallocDataFiles
721
- type : boolean
722
- default : true
723
- directive : setting
724
- replacement :
725
- program : " :program:`mongod`"
726
- inherit :
727
- name : noprealloc
728
- program : mongod
729
- file : options-mongod.yaml
730
- post : |
731
- The {{role}} option is available only for :program:`mongod`.
732
- ---
733
- program : conf
734
720
name : storage.nsSize
735
721
type : integer
736
722
default : 16
Original file line number Diff line number Diff line change @@ -591,10 +591,10 @@ name: noprealloc
591
591
args : null
592
592
directive : option
593
593
description : |
594
- Disables the preallocation of data files. This shortens the
595
- start up time in some cases and can cause significant performance
596
- penalties during normal operations .
597
- optional : true
594
+ .. deprecated:: 2.6
595
+
596
+ Disables the preallocation of data files. Currently the default .
597
+ Exists for future compatibility and clarity.
598
598
---
599
599
program : mongod
600
600
name : noscripting
Original file line number Diff line number Diff line change @@ -38,12 +38,10 @@ arbiter's :doc:`configuration file </reference/configuration-options>`:
38
38
39
39
- :setting:`~storage.smallFiles` to ``true``
40
40
41
- - :setting:`~storage.preallocDataFiles` to ``false``
42
-
43
41
These settings are specific to arbiters. Do not set
44
42
:setting:`journal.enabled <storage.journal.enabled>` to ``false`` on a
45
- data-bearing node. Similarly, do not set :setting:`~storage.smallFiles` or
46
- :setting:`~storage.preallocDataFiles` unless specifically indicated.
43
+ data-bearing node. Similarly, do not set :setting:`~storage.smallFiles`
44
+ unless specifically indicated.
47
45
48
46
Add an Arbiter
49
47
--------------
You can’t perform that action at this time.
0 commit comments