Docs Menu

Docs HomeMongoDB Manual

setParameter

On this page

  • Definition
  • Syntax
  • Behavior
setParameter

setParameter is an administrative command for modifying options normally set on the command line. You must issue the setParameter command against the admin database.

db.adminCommand(
{
setParameter: 1,
<parameter>: <value>
}
)

For the available parameters, including examples, see MongoDB Server Parameters.

Commands issued by the admin command setParameter do not survive server restarts. For a persistent option use the --setParameter command line option or the setParameter configuration file setting.

When using Stable API V1 with apiStrict set to true, you cannot use setParameter to modify server parameters.

←  setIndexCommitQuorumsetDefaultRWConcern →
Share Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.