Skip to content

Fsync lock profiling #83

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

Merged
merged 6 commits into from
Jul 23, 2012
Merged
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
2 changes: 2 additions & 0 deletions source/administration/backups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ the snapshot has completed, use the following command in the
db.runCommand( { fsync: 1, lock: true } );
db.runCommand( { fsync: 1, lock: false } );

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. _backup-amazon-software-raid:

Amazon EBS in Software RAID 10 Configuration
Expand Down
9 changes: 9 additions & 0 deletions source/includes/note-disable-profiling-fsynclock.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. note::

The database cannot be locked with :func:`db.fsyncLock()` while profiling is enabled.
You must disable profiling before locking the database with :func:`db.fsyncLock()`.
Disable profiling using :func:`db.setProfilingLevel()` as follows in the :program:`mongo` shell:

.. code-block:: javascript

db.setProfilingLevel(0)
4 changes: 4 additions & 0 deletions source/reference/commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,8 @@ Administration
The :func:`db.fsyncLock()` and :func:`db.fsyncUnlock()`
helpers in the shell.

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. dbcommand:: dropDatabase

The :dbcommand:`dropDatabase` command drops a database, deleting
Expand Down Expand Up @@ -2170,6 +2172,8 @@ Diagnostics
around this functionality in the :program:`mongo`
shell.

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. dbcommand:: listCommands

The :dbcommand:`listCommands` command generates a list of all
Expand Down
4 changes: 4 additions & 0 deletions source/reference/javascript.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,8 @@ Database
the :setting:`slowms` to the log even when the database profiler is
not active.

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. function:: db.shutdownServer()

Shuts down the current :program:`mongod` or :program:`mongos`
Expand Down Expand Up @@ -1154,6 +1156,8 @@ Database
This function locks the database and create a window for
:doc:`backup operations </administration/backups>`.

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. function:: db.fsyncUnlock()

Unlocks a database server to allow writes and reverses the
Expand Down