Skip to content

Documentation states operationProfiling.mode is an int #1915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/includes/options-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,12 @@ post: |
---
program: conf
name: operationProfiling.mode
type: integer
type: string
directive: setting
replacement:
program: ":program:`mongod`"
inherit:
name: profile
name: profilingmode
program: mongod
file: options-mongod.yaml
post: |
Expand Down
40 changes: 37 additions & 3 deletions source/includes/options-mongod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -644,15 +644,49 @@ description: |

- Setting

* - ``0``
* - 0

- Off. No profiling.

* - ``1``
* - 1

- On. Only includes slow operations.

* - ``2``
* - 2

- On. Includes all operations.

Database profiling can impact database
performance. Enable this option only after careful consideration.
optional: true
---
program: mongod
name: profilingmode
args: <level>
default: "off"
directive: option
description: |
Changes the level of database profiling, which inserts information about
operation performance into standard output or a log file. Specify one
of the following levels:

.. list-table::
:header-rows: 1
:widths: 20 40

* - Level

- Setting

* - ``off``

- Off. No profiling.

* - ``slowOp``

- On. Only includes slow operations.

* - ``all``

- On. Includes all operations.

Expand Down