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