-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-415 diaglogging: add warning that log is kept open by mongod #280
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
.. warning:: | ||
|
||
Setting the diagnostic level to ``0`` will cause :program:`mongod` | ||
to stop writing data to the :term:`diagnostic log` file, however the | ||
:program:`mongod` instance will continue to keep the file open. | ||
If you want to rename, move, or delete the diagnostic log you must | ||
cleanly shut down the :program:`mongod` instance before doing so. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't have good documentation of what "clean shutdown" is. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -866,3 +866,16 @@ Glossary | |
results. The optimizer then uses the query plan each time the | ||
query is run. If a collection changes significantly, the optimizer | ||
creates a new query plan. | ||
|
||
diagnostic log | ||
:program:`mongod` can create a verbose log of operations with | ||
the :option:`mongod --diaglog` option or through the | ||
:dbcommand:`diagLogging` command. This log will be created in | ||
the directory specified with the :option:`mongod --dbpath` option | ||
or the default :file:`/data/db` directory. The log file will | ||
be named :file:`diaglog.{time in hex}`, with the time when | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. angle brackets rather than curly brackets. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sphinx processes the {} in a :file: directive to italicize the enclosed text, it will appear as diaglog.time in hex in the resulting doc There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's a docutils thing. I changed it but we can change it back. shrug On Friday, October 05 2012, 09:57:46, Ed Costello wrote:
Sam Kleinman (@tychoish) |
||
logging was initiated appended as a hexadecimal string. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix passive verbs in this section. |
||
|
||
.. include:: /includes/warning-diaglogging-off.rst | ||
|
||
.. seealso:: :option:`mongod --diaglog` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,10 +189,11 @@ Options | |
|
||
.. option:: --diaglog <value> | ||
|
||
Creates a very verbose, diagnostic log for troubleshooting and | ||
Creates a very verbose, :term:`diagnostic log` for troubleshooting and | ||
recording various errors. MongoDB writes these log files in the | ||
:setting:`dbpath` in a series of files that begin with the string | ||
``diaglog``. | ||
:setting:`dbpath` directory in a series of files that begin with the string | ||
``diaglog`` with the time logging was initiated appended as a hex | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. passive verb |
||
string. | ||
|
||
The specified value configures the level of verbosity. Possible | ||
values, and their impact are as follows. | ||
|
@@ -219,6 +220,8 @@ Options | |
:option:`--diaglog` is for internal use and not intended for most | ||
users. | ||
|
||
.. include:: /includes/warning-diaglogging-off.rst | ||
|
||
.. option:: --directoryperdb | ||
|
||
Alters the storage pattern of the data directory to store each | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.