- Reference >
- Database Commands >
- setParameter
setParameter¶
-
setParameter
¶ setParameter
is an administrative command for modifying options normally set on the command line. You must issue thesetParameter
command against the admin database in the form:Replace the
<option>
with one of the following options supported by this command:Options: - journalCommitInterval (integer) –
Specify an integer between
1
and500
signifying the number of milliseconds (ms) between journal commits.Consider the following example which sets the
journalCommitInterval
to200
ms:See also
- logLevel (integer) –
Specify an integer between
0
and5
signifying the verbosity of the logging, where5
is the most verbose.Consider the following example which sets the
logLevel
to2
:See also
- notablescan (boolean) –
Specify whether queries must use indexes. If
true
, queries that perform a table scan instead of using an index will fail.Consider the following example which sets the
notablescan
to true:See also
- traceExceptions (boolean) –
New in version 2.1.
Configures
mongod
log full stack traces on assertions or errors. Iftrue
,mongod
will log full stack traces on assertions or errors.Consider the following example which sets the
traceExceptions
to true:See also
- quiet (boolean) –
Sets quiet logging mode. If
true
,mongod
will go into a quiet logging mode which will not log the following events/activities:- connection events;
- the
drop
command, thedropIndexes
command, thediagLogging
command, thevalidate
command, and theclean
command; and - replication synchronization activities.
Consider the following example which sets the
quiet
to true:See also
- syncdelay (integer) –
Specify the interval in seconds between fsyncs (i.e., flushes of memory to disk). By default,
mongod
will flush memory to disk every 60 seconds. Do not change this value unless you see a background flush average greater than 60 seconds.Consider the following example which sets the
syncdelay
to60
seconds:See also
- journalCommitInterval (integer) –