diff --git a/source/includes/options-conf.yaml b/source/includes/options-conf.yaml index dc238161252..42ecf558d88 100644 --- a/source/includes/options-conf.yaml +++ b/source/includes/options-conf.yaml @@ -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: | diff --git a/source/includes/options-mongod.yaml b/source/includes/options-mongod.yaml index 68cecddf0b5..a73ca58f123 100644 --- a/source/includes/options-mongod.yaml +++ b/source/includes/options-mongod.yaml @@ -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: +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.