Skip to content

Commit 065a785

Browse files
author
Sam Kleinman
committed
merge: DOCS-331
2 parents b720e2f + 310bc71 commit 065a785

File tree

1 file changed

+121
-34
lines changed

1 file changed

+121
-34
lines changed

source/reference/command/setParameter.txt

Lines changed: 121 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,126 @@ setParameter
1818
Replace the ``<option>`` with one of the following options
1919
supported by this command:
2020

21-
:option integer journalCommitInterval: Specify an integer between 1
22-
and 500 specifying the
23-
number of milliseconds (ms)
24-
between journal commits.
25-
26-
:option integer logLevel: Specify an integer between ``0`` and
27-
``5`` signifying the verbosity of the
28-
logging, where larger is more verbose.
29-
30-
:option boolean notablescan: If ``true``, queries that do not
31-
using an index will fail.
32-
33-
:option boolean traceExceptions: If ``true``, :program:`mongod` will
34-
log full stack traces on assertions
35-
or errors. This parameter is only
36-
available in version 2.1 and later.
37-
38-
:option boolean quiet: Enables a quiet logging mode when
39-
``true``. Use ``false`` to disable. Quiet
40-
logging removes the following messages from
41-
the log: connection events; the
42-
:dbcommand:`drop`, :dbcommand:`dropIndexes`,
43-
:dbcommand:`diagLogging`,
44-
:dbcommand:`validate`, and
45-
:dbcommand:`clean`; and replication
46-
synchronization activity.
47-
48-
:option integer syncdelay: Specify the interval, in seconds,
49-
between :term:`fsyncs <fsync>` (i.e.,
50-
flushes of memory to disk). By default,
51-
:program:`mongod` will flush memory to
52-
disk every 60 seconds. Do not change
53-
this value unless you see a background
54-
flush average greater than 60 seconds.
21+
:option integer journalCommitInterval:
22+
23+
Specify an integer between ``1`` and ``500`` signifying the number
24+
of milliseconds (ms) between journal commits.
25+
26+
Consider the following example which sets the
27+
``journalCommitInterval`` to ``200`` ms:
28+
29+
.. code-block:: javascript
30+
31+
use admin
32+
db.runCommand( { setParameter: 1, journalCommitInterval: 200 } )
33+
34+
.. seealso::
35+
36+
:setting:`journalCommitInterval`.
37+
38+
:option integer logLevel:
39+
40+
Specify an integer between ``0`` and ``5`` signifying the
41+
verbosity of the logging, where ``5`` is the most verbose.
42+
43+
Consider the following example which sets the
44+
``logLevel`` to ``2``:
45+
46+
.. code-block:: javascript
47+
48+
use admin
49+
db.runCommand( { setParameter: 1, logLevel: 2 } )
50+
51+
.. seealso::
52+
53+
:setting:`verbose`.
54+
55+
:option boolean notablescan:
56+
57+
Specify whether queries must use indexes. If ``true``,
58+
queries that perform a table scan instead of using an index
59+
will fail.
60+
61+
Consider the following example which sets the
62+
``notablescan`` to true:
63+
64+
.. code-block:: javascript
65+
66+
use admin
67+
db.runCommand( { setParameter: 1, notablescan: true } )
68+
69+
.. seealso::
70+
71+
:setting:`notablescan`.
72+
73+
74+
:option boolean traceExceptions:
75+
76+
.. versionadded:: 2.1
77+
78+
Specify whether to log full stack traces on assertions or
79+
errors. If ``true``, :program:`mongod` will log full stack
80+
traces on assertions or errors.
81+
82+
Consider the following example which sets the
83+
``traceExceptions`` to true:
84+
85+
.. code-block:: javascript
86+
87+
use admin
88+
db.runCommand( { setParameter: 1, traceExceptions: true } )
89+
90+
.. seealso::
91+
92+
:setting:`traceExceptions`.
93+
94+
:option boolean quiet:
95+
96+
Specify whether to go into a quiet logging mode. If
97+
``true``, :program:`mongod` will go into a quiet logging
98+
mode which will not log the following events/activities:
99+
100+
- connection events;
101+
102+
- the :dbcommand:`drop` command, the
103+
:dbcommand:`dropIndexes` command, the
104+
:dbcommand:`diagLogging` command, the
105+
:dbcommand:`validate` command, and the
106+
:dbcommand:`clean` command; and
107+
108+
- replication synchronization activities.
109+
110+
Consider the following example which sets the
111+
``quiet`` to true:
112+
113+
.. code-block:: javascript
114+
115+
use admin
116+
db.runCommand( { setParameter: 1, quiet: true } )
117+
118+
.. seealso::
119+
120+
:setting:`quiet`.
121+
122+
:option integer syncdelay:
123+
124+
Specify the interval in seconds between :term:`fsyncs
125+
<fsync>` (i.e., flushes of memory to disk). By default,
126+
:program:`mongod` will flush memory to disk every 60
127+
seconds. Do not change this value unless you see a
128+
background flush average greater than 60 seconds.
129+
130+
Consider the following example which sets the
131+
``syncdelay`` to ``60`` seconds:
132+
133+
.. code-block:: javascript
134+
135+
use admin
136+
db.runCommand( { setParameter: 1, syncdelay: 60 } )
137+
138+
.. seealso::
139+
140+
:setting:`syncdelay`.
141+
55142

56143
.. slave-ok, admin-only

0 commit comments

Comments
 (0)