Skip to content

Commit e342ea4

Browse files
committed
DOCS-140 review
1 parent 2c1f9ff commit e342ea4

File tree

3 files changed

+80
-11
lines changed

3 files changed

+80
-11
lines changed

source/administration/configuration.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ and settings, this document primarily uses the configuration file
1616
interface. If you run MongoDB using a control script or packaged for
1717
your operating system, you likely already have a configuration file
1818
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
2121
:program:`mongod` with the appropriate configuration file (see below.)
2222

2323
To start MongoDB instance using this configuration issue a command in
@@ -202,6 +202,8 @@ different configurations. The config servers stores the cluster's
202202
metadata, while the cluster distributes data among one or more
203203
shard servers.
204204

205+
TODO: Make a point that the config servers are not a replica set?
206+
205207
To set up one or three "config server" instances as :ref:`normal
206208
<base-config>` :program:`mongod` instances, and then add the following
207209
configuration option:
@@ -345,3 +347,5 @@ needed:
345347
addition to tools such as :program:`iostat`, :program:`vmstat`, or
346348
:program:`top` to provide insight into the state of the system
347349
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

source/reference/configuration-options.rst

Lines changed: 73 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Administrators and users can control :program:`mongod` or
1313
configuration file.
1414

1515
While both methods are functionally equivalent and all settings are
16-
similar, The configuration file method is preferable and if you
17-
installed from a package and starting MongoDB using your system's
16+
similar, the configuration file method is preferable. If you
17+
installed from a package and have started MongoDB using your system's
1818
:term:`control script`, you're already using a configuration file.
1919

2020
To start :program:`mongod` or :program:`mongos` using a config file,
@@ -27,12 +27,16 @@ use one of the following forms:
2727
mongos --config /srv/mongodb/mongos.conf
2828
mongos -f /srv/mongodb/mongos.conf
2929
30-
Declare All settings in this file using the following form:
30+
Declare all settings in this file using the following form:
3131

3232
.. code-block:: sh
3333
3434
<setting> = <value>
3535
36+
TODO: This is not completely accurate. Some settings are <setting>=<value> (no spacing).
37+
Ref here: https://github.com/mongodb/mongo/blob/master/rpm/mongod.conf
38+
This is probably something we should standardize on with no spaces and settings in ALLCAPS being the default.
39+
3640
.. versionadded:: 2.0
3741
*Before* version 2.0, boolean (i.e. "``true|false``") or "flag"
3842
parameters, register as true, if they appear in the configuration
@@ -50,6 +54,8 @@ Settings
5054
Increases the amount of internal reporting returned on standard
5155
output or in the log file generated by :setting:`logpath`.
5256

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+
5359
.. setting:: v
5460

5561
*Default:* false
@@ -82,6 +88,8 @@ Settings
8288

8389
.. setting:: quiet
8490

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+
8593
*Default:* false
8694

8795
Runs the :program:`mongod` instance in a quiet mode that attempts to limit
@@ -99,6 +107,8 @@ Settings
99107

100108
*Default:* 127.0.0.1
101109

110+
TODO: I think this is not true. I think we default to *, and SHOULD default to 127.0.0.1
111+
102112
Set this option to configure the :program:`mongod` process to bind
103113
to and listen for connections from applications on this
104114
address. You may attach :program:`mongod` to any interface;
@@ -112,6 +122,7 @@ Settings
112122
.. setting:: maxConns
113123

114124
*Default:* depends on system settings.
125+
TODO: Enumerate what system setting this is dependent on.
115126

116127
Specifies a value to set the maximum number of simultaneous
117128
connections that :program:`mongod` or :program:`mongos` will
@@ -131,6 +142,9 @@ Settings
131142

132143
*Default:* false
133144

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+
134148
Set to ``true`` to force :program:`mongod` to validate all requests
135149
from clients upon receipt to ensure that invalid objects are never
136150
inserted into the database.
@@ -139,19 +153,25 @@ Settings
139153

140154
*Default:* None. (i.e. ``/dev/stdout``)
141155

156+
TODO: Explain that this setting to to a filename, _not_ a directory.
157+
142158
Specify a path for the log file that will hold all diagnostic
143159
logging information.
144160

145161
Unless specified, :program:`mongod` will output all log information
146162
to the standard output. Unless :setting:`logappend` is ``true``,
147163
the logfile will be overwritten when the process restarts.
148164

165+
TODO: Follow this ticket for behavioral change on this topic: https://jira.mongodb.org/browse/SERVER-4499
166+
149167
.. setting:: logappend
150168

151169
*Default:* false
152170

153171
Set to ``true`` to add new entries to the end of the logfile rather
154172
than overwriting the content of the log when the process restarts.
173+
174+
TODO: same as above
155175

156176
.. setting:: syslog
157177

@@ -205,6 +225,8 @@ Settings
205225

206226
Set to ``true`` to enable a :term:`daemon` mode for :program:`mongod`
207227
which forces the process to the background.
228+
229+
TODO: "forces" vs "forks"?
208230

209231
.. setting:: auth
210232

@@ -232,11 +254,13 @@ Settings
232254

233255
Set this value to designate a directory for the :program:`mongod`
234256
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``"
236258

237259
Unless specified, :program:`mongod` creates data files in the
238260
default ``/data/db`` directory. (Windows systems use the
239261
``\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.
240264

241265
.. setting:: diaglog
242266

@@ -246,6 +270,8 @@ Settings
246270
:program:`mongod` instance. Possible values, and their impact are
247271
as follows.
248272

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+
249275
========= ===================================
250276
**Value** **Setting**
251277
--------- -----------------------------------
@@ -264,10 +290,15 @@ Settings
264290
to store each database's files in a distinct folder. Use this option to
265291
configure MongoDB to store data on a number of distinct disk
266292
devices to increase write throughput or disk capacity.
293+
294+
TODO: Explain the distinct folder naming scheme
267295

268296
Unless specified, :program:`mongod` saves all database files in the
269297
directory specified by :setting:`dbpath`.
270298

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+
271302
.. setting:: journal
272303

273304
*Default:* (on 64-bit systems) true
@@ -316,11 +347,15 @@ Settings
316347

317348
For consistency use the :setting:`auth` option.
318349

350+
TODO: I didn't see a refernce here for the auth setting - is it missing? Should we have both auth and noauth?
351+
319352
.. setting:: nohttpinterface
320353

321354
*Default:* false
322355

323356
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.
324359

325360
.. setting:: nojournal
326361

@@ -332,6 +367,8 @@ Settings
332367
default, :program:`mongod` enables journaling in 64-bit versions
333368
after v2.0.
334369

370+
TODO: Same as auth/noauth - what do we do with journal/nojournal?
371+
335372
.. setting:: noprealloc
336373

337374
*Default:* false
@@ -360,7 +397,7 @@ Settings
360397
Specify this value in megabytes.
361398

362399
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
364401
size of existing namespace files.
365402

366403
The default value is 16 megabytes, this provides for effectively
@@ -374,6 +411,8 @@ Settings
374411
inserts information about operation performance into output of
375412
:program:`mongod` or the log file. The following levels are
376413
available:
414+
415+
TODO: "or the log file" - maybe explain why it would go to the logfile? If `logpath is specified`?
377416

378417
========= ==================================
379418
**Level** **Setting**
@@ -383,7 +422,7 @@ Settings
383422
2 On. Includes all operations.
384423
========= ==================================
385424

386-
By default, :program:`mongod` disables profiling Database profiling
425+
By default, :program:`mongod` disables profiling. Database profiling
387426
can impact database performance because the profiler must record
388427
and process all database operations. Enable this option only after
389428
careful consideration.
@@ -459,12 +498,14 @@ Settings
459498
file size for data files and limits the maximum file size to 512
460499
megabytes. Use :setting:`smallfiles` if you have a large number of
461500
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.
462503

463504
.. setting:: syncdelay
464505

465506
*Default:* 60
466507

467-
This setting contrils the maximum number of seconds between disk
508+
This setting controls the maximum number of seconds between disk
468509
syncs. While :program:`mongod` is always writing data to disk, this
469510
setting controls the maximum guaranteed interval between a
470511
successful write operation and the next time the database flushes
@@ -489,6 +530,15 @@ Settings
489530

490531
More typically, run this operation by way of the :option:`mongod
491532
--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.
492542

493543
.. setting:: upgrade
494544

@@ -503,6 +553,8 @@ Settings
503553

504554
When specified for a :program:`mongos` instance, this option updates
505555
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?
506558

507559
Replica Set Options
508560
```````````````````
@@ -523,6 +575,11 @@ Replica Set Options
523575
secondary or slave will be permanently out of sync with the
524576
primary, which may cause significant consistency problems.
525577

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.
581+
here: http://www.mongodb.org/display/DOCS/Command+Line+Parameters
582+
526583
.. setting:: oplogSize
527584

528585
o Specifies a maximum size in megabytes for the replication operation
@@ -563,6 +620,8 @@ Master/Slave Replication
563620

564621
Used with the :setting:`slave` option, the ``only`` setting
565622
specifies only a single :term:`database` to replicate.
623+
624+
TODO: I don't think this is a true/false, rather a db name
566625

567626
.. setting:: slavedelay
568627

@@ -591,6 +650,8 @@ Master/Slave Replication
591650
Replica Set Options
592651
```````````````````
593652

653+
TODO: Is it me, or are there two replica set options sections?
654+
594655
.. setting:: replSet
595656

596657
*Default:* <none>
@@ -602,13 +663,15 @@ Replica Set Options
602663
Use this setting to configure replication with replica
603664
sets. Specify a replica set name as an argument to this set. All
604665
hosts must have the same set name. You can add one or more "seed"
605-
hosts to one or more host in the set to initiate the cluster. Use
666+
hosts to one or more hosts in the set to initiate the cluster. Use
606667
the following form: ::
607668

608669
replSet = <setname>/<host1>,<host2>:<port>
609670

610671
When you add or reconfigure the replica set on one host, these
611672
changes propagate throughout the cluster.
673+
674+
TODO: Do they? If they are set in a config file, then probably not. Maybe "When you add or reconfig.. should be propagated"?
612675

613676
Sharding Cluster Options
614677
````````````````````````
@@ -648,6 +711,8 @@ Sharding Cluster Options
648711
(i.e. :term:`config database`) for the :term:`shard cluster`. You may
649712
specify either 1 configuration server or 3 configuration servers,
650713
in a comma separated list.
714+
715+
TODO: May vs must?
651716

652717
This setting only affects :program:`mongos` processes.
653718

source/reference/mongod.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Options
163163
.. option:: --cpu
164164

165165
Forces :program:`mongod` to report the percentage of CPU time in
166-
write lock. :program:`mongod` generates output ever four
166+
write lock. :program:`mongod` generates output every four
167167
seconds. MongoDB writes this data to standard output or the logfile
168168
if using the :setting:`logpath` option.
169169

0 commit comments

Comments
 (0)