- Reference >
- Database Commands >
- setParameter
setParameter¶
-
setParameter¶ setParameteris an administrative command for modifying options normally set on the command line. You must issue thesetParametercommand 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
1and500signifying the number of milliseconds (ms) between journal commits.Consider the following example which sets the
journalCommitIntervalto200ms:See also
- logLevel (integer) –
Specify an integer between
0and5signifying the verbosity of the logging, where5is the most verbose.Consider the following example which sets the
logLevelto2: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
notablescanto true:See also
- traceExceptions (boolean) –
New in version 2.1.
Configures
mongodlog full stack traces on assertions or errors. Iftrue,mongodwill log full stack traces on assertions or errors.Consider the following example which sets the
traceExceptionsto true:See also
- quiet (boolean) –
Sets quiet logging mode. If
true,mongodwill go into a quiet logging mode which will not log the following events/activities:- connection events;
- the
dropcommand, thedropIndexescommand, thediagLoggingcommand, thevalidatecommand, and thecleancommand; and - replication synchronization activities.
Consider the following example which sets the
quietto true:See also
- syncdelay (integer) –
Specify the interval in seconds between fsyncs (i.e., flushes of memory to disk). By default,
mongodwill 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
syncdelayto60seconds:See also
- journalCommitInterval (integer) –