You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/administration/configuration.rst
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ and settings, this document primarily uses the configuration file
16
16
interface. If you run MongoDB using a control script or packaged for
17
17
your operating system, you likely already have a configuration file
18
18
located at ``/etc/mogondb.conf``. Confirm this by checking the content
19
-
of the ``/etc/init.d/mongodb`` or ``/etc/rc.d/mongodb`` script to
20
-
insure that the :term:`control scripts <control script>` starts the
19
+
of the ``/etc/init.d/mongod`` or ``/etc/rc.d/mongod`` script to
20
+
insure that the :term:`control scripts <control script>` start the
21
21
:program:`mongod` with the appropriate configuration file (see below.)
22
22
23
23
To start MongoDB instance using this configuration issue a command in
@@ -202,6 +202,8 @@ different configurations. The config servers stores the cluster's
202
202
metadata, while the cluster distributes data among one or more
203
203
shard servers.
204
204
205
+
TODO: Make a point that the config servers are not a replica set?
206
+
205
207
To set up one or three "config server" instances as :ref:`normal
206
208
<base-config>` :program:`mongod` instances, and then add the following
207
209
configuration option:
@@ -345,3 +347,5 @@ needed:
345
347
addition to tools such as :program:`iostat`, :program:`vmstat`, or
346
348
:program:`top` to provide insight into the state of the system
347
349
in context of the log.
350
+
351
+
TODO: This setting doesn't actually work as explained. See here: https://jira.mongodb.org/browse/CS-2260?focusedCommentId=86579&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-86579
This is probably something we should standardize on with no spaces and settings in ALLCAPS being the default.
39
+
36
40
.. versionadded:: 2.0
37
41
*Before* version 2.0, boolean (i.e. "``true|false``") or "flag"
38
42
parameters, register as true, if they appear in the configuration
@@ -50,6 +54,8 @@ Settings
50
54
Increases the amount of internal reporting returned on standard
51
55
output or in the log file generated by :setting:`logpath`.
52
56
57
+
TODO: I would figure out a way to collapse these, and try to explain the levels of verbosity. I cannot enumerate them yet.
58
+
53
59
.. setting:: v
54
60
55
61
*Default:* false
@@ -82,6 +88,8 @@ Settings
82
88
83
89
.. setting:: quiet
84
90
91
+
TODO: Since we've declared above that configs can be used for mongod and mongos, either state that the config item applies to both, or don't state that at all.
92
+
85
93
*Default:* false
86
94
87
95
Runs the :program:`mongod` instance in a quiet mode that attempts to limit
@@ -99,6 +107,8 @@ Settings
99
107
100
108
*Default:* 127.0.0.1
101
109
110
+
TODO: I think this is not true. I think we default to *, and SHOULD default to 127.0.0.1
111
+
102
112
Set this option to configure the :program:`mongod` process to bind
103
113
to and listen for connections from applications on this
104
114
address. You may attach :program:`mongod` to any interface;
@@ -112,6 +122,7 @@ Settings
112
122
.. setting:: maxConns
113
123
114
124
*Default:* depends on system settings.
125
+
TODO: Enumerate what system setting this is dependent on.
115
126
116
127
Specifies a value to set the maximum number of simultaneous
117
128
connections that :program:`mongod` or :program:`mongos` will
@@ -131,6 +142,9 @@ Settings
131
142
132
143
*Default:* false
133
144
145
+
TODO: Since this option tells me that invalid BSON data would never get inserted to the DB, we should explain why the default is false.
146
+
I believe it has to do with overhead, and we should explain what that is.
147
+
134
148
Set to ``true`` to force :program:`mongod` to validate all requests
135
149
from clients upon receipt to ensure that invalid objects are never
136
150
inserted into the database.
@@ -139,19 +153,25 @@ Settings
139
153
140
154
*Default:* None. (i.e. ``/dev/stdout``)
141
155
156
+
TODO: Explain that this setting to to a filename, _not_ a directory.
157
+
142
158
Specify a path for the log file that will hold all diagnostic
143
159
logging information.
144
160
145
161
Unless specified, :program:`mongod` will output all log information
146
162
to the standard output. Unless :setting:`logappend` is ``true``,
147
163
the logfile will be overwritten when the process restarts.
148
164
165
+
TODO: Follow this ticket for behavioral change on this topic: https://jira.mongodb.org/browse/SERVER-4499
166
+
149
167
.. setting:: logappend
150
168
151
169
*Default:* false
152
170
153
171
Set to ``true`` to add new entries to the end of the logfile rather
154
172
than overwriting the content of the log when the process restarts.
173
+
174
+
TODO: same as above
155
175
156
176
.. setting:: syslog
157
177
@@ -205,6 +225,8 @@ Settings
205
225
206
226
Set to ``true`` to enable a :term:`daemon` mode for :program:`mongod`
207
227
which forces the process to the background.
228
+
229
+
TODO: "forces" vs "forks"?
208
230
209
231
.. setting:: auth
210
232
@@ -232,11 +254,13 @@ Settings
232
254
233
255
Set this value to designate a directory for the :program:`mongod`
234
256
instance to store its data. Typical locations include:
235
-
"``/srv/mognodb``", "``/var/lib/mongodb``" or "``/opt/mongodb``"
257
+
"``/srv/mongodb``", "``/var/lib/mongodb``" or "``/opt/mongodb``"
236
258
237
259
Unless specified, :program:`mongod` creates data files in the
238
260
default ``/data/db`` directory. (Windows systems use the
239
261
``\data\db`` directory.)
262
+
263
+
TODO: Inaccurate. While we expect this dir by default, if it does not exist on first run, mongod will error out and exit. Also, packages have distinct locations for db storage that are created upon install and the conf for those has it applied.
240
264
241
265
.. setting:: diaglog
242
266
@@ -246,6 +270,8 @@ Settings
246
270
:program:`mongod` instance. Possible values, and their impact are
247
271
as follows.
248
272
273
+
TODO: Explain which diaglog this is, since we call the "logpath" for diagnostic logging, and this logging may be in another log file.
274
+
249
275
========= ===================================
250
276
**Value** **Setting**
251
277
--------- -----------------------------------
@@ -264,10 +290,15 @@ Settings
264
290
to store each database's files in a distinct folder. Use this option to
265
291
configure MongoDB to store data on a number of distinct disk
266
292
devices to increase write throughput or disk capacity.
293
+
294
+
TODO: Explain the distinct folder naming scheme
267
295
268
296
Unless specified, :program:`mongod` saves all database files in the
269
297
directory specified by :setting:`dbpath`.
270
298
299
+
TODO: Since all files will be in dpath anyways, and just branch off the root of that dir, maybe this statement should be explained better.
300
+
301
+
271
302
.. setting:: journal
272
303
273
304
*Default:* (on 64-bit systems) true
@@ -316,11 +347,15 @@ Settings
316
347
317
348
For consistency use the :setting:`auth` option.
318
349
350
+
TODO: I didn't see a refernce here for the auth setting - is it missing? Should we have both auth and noauth?
351
+
319
352
.. setting:: nohttpinterface
320
353
321
354
*Default:* false
322
355
323
356
Set to ``true`` to disable the HTTP interface.
357
+
358
+
TODO: Does disabling with nohttp override jsonp and rest commands? Do they reenable http? Don't know.
324
359
325
360
.. setting:: nojournal
326
361
@@ -332,6 +367,8 @@ Settings
332
367
default, :program:`mongod` enables journaling in 64-bit versions
333
368
after v2.0.
334
369
370
+
TODO: Same as auth/noauth - what do we do with journal/nojournal?
371
+
335
372
.. setting:: noprealloc
336
373
337
374
*Default:* false
@@ -360,7 +397,7 @@ Settings
360
397
Specify this value in megabytes.
361
398
362
399
Use this setting to control the default size for all newly created
363
-
namespace files (i.e ``.NS``). This option has no impact on the
400
+
namespace files (i.e ``.ns``). This option has no impact on the
364
401
size of existing namespace files.
365
402
366
403
The default value is 16 megabytes, this provides for effectively
@@ -374,6 +411,8 @@ Settings
374
411
inserts information about operation performance into output of
375
412
:program:`mongod` or the log file. The following levels are
376
413
available:
414
+
415
+
TODO: "or the log file" - maybe explain why it would go to the logfile? If `logpath is specified`?
377
416
378
417
========= ==================================
379
418
**Level** **Setting**
@@ -383,7 +422,7 @@ Settings
383
422
2 On. Includes all operations.
384
423
========= ==================================
385
424
386
-
By default, :program:`mongod` disables profiling Database profiling
425
+
By default, :program:`mongod` disables profiling. Database profiling
387
426
can impact database performance because the profiler must record
388
427
and process all database operations. Enable this option only after
389
428
careful consideration.
@@ -459,12 +498,14 @@ Settings
459
498
file size for data files and limits the maximum file size to 512
460
499
megabytes. Use :setting:`smallfiles` if you have a large number of
461
500
databases that each holds a small quaint of data.
501
+
502
+
TODO: I think "quaint" in the last line is quaint, but probably meant amount or something else.
462
503
463
504
.. setting:: syncdelay
464
505
465
506
*Default:* 60
466
507
467
-
This setting contrils the maximum number of seconds between disk
508
+
This setting controls the maximum number of seconds between disk
468
509
syncs. While :program:`mongod` is always writing data to disk, this
469
510
setting controls the maximum guaranteed interval between a
470
511
successful write operation and the next time the database flushes
@@ -489,6 +530,15 @@ Settings
489
530
490
531
More typically, run this operation by way of the :option:`mongod
491
532
--sysinfo` command.
533
+
534
+
TODO: What kind of system info is returned? Is it helpful, used in any way?
535
+
Here's an output from a production server:
536
+
Tue Mar 6 13:48:57 sysinfo:
537
+
Tue Mar 6 13:48:57 page size: 4096
538
+
Tue Mar 6 13:48:57 _SC_PHYS_PAGES: 4116145
539
+
Tue Mar 6 13:48:57 _SC_AVPHYS_PAGES: 30950
540
+
541
+
I don't know what these values mean, nor what units they are measured in.
492
542
493
543
.. setting:: upgrade
494
544
@@ -503,6 +553,8 @@ Settings
503
553
504
554
When specified for a :program:`mongos` instance, this option updates
505
555
the meta data format used by the :term:`config database`.
556
+
557
+
TODO: Is this still a thing? When/where do we tell someone to run this command?
506
558
507
559
Replica Set Options
508
560
```````````````````
@@ -523,6 +575,11 @@ Replica Set Options
523
575
secondary or slave will be permanently out of sync with the
524
576
primary, which may cause significant consistency problems.
525
577
578
+
TODO: Since we recommend a resync as a recommended method of bringing up a new member of a replica set, is this part of replsets, or master/slave?
579
+
I found this:
580
+
--fastsync If the node has a completely up-to-date copy of the data, use this option to let it know it can skip the resync. Be careful – the server will assume it is caught up completely and if not so the data will be out of sync permanently.
0 commit comments