From 76a67d17ce921fc8849564577121aae579f38d06 Mon Sep 17 00:00:00 2001 From: "Tim Slavin (MongoDB)" Date: Mon, 28 Jul 2014 15:34:53 -0400 Subject: [PATCH] DOCS-3753: Documentation states operationProfiling.mode is an int, but server requires a string --- source/includes/options-conf.yaml | 4 +-- source/includes/options-mongod.yaml | 40 ++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 5 deletions(-) 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.