Skip to content

SERVER-2113 #1907

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
wants to merge 3 commits into from
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
29 changes: 14 additions & 15 deletions source/includes/example-filter-current-op.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
- Return all pending write operations:
- Return all write operations waiting for lock:

.. code-block:: javascript

db.currentOp().inprog.forEach(
function(d){
if(d.waitingForLock && d.lockType != "read")
printjson(d)
db.currentOp({
"waitingForLock" : true,
"op" : { "$in" : [ "insert", "update", "remove" ] }
})

- Return the active write operation:
- Return all active running operation that have never yielded:

.. code-block:: javascript

db.currentOp().inprog.forEach(
function(d){
if(d.active && d.lockType == "write")
printjson(d)
db.currentOp({
"active" : true,
"numYields" : 0,
"waitingForLock" : false
})

- Return all active read operations:
- Return all active queries for database "db1" that have been running longer than 3 seconds:

.. code-block:: javascript

db.currentOp().inprog.forEach(
function(d){
if(d.active && d.lockType == "read")
printjson(d)
db.currentOp({
"active" : true,
"secs_running" : { "$gt" : 3 },
"ns" : /^db1./
})
4 changes: 2 additions & 2 deletions source/tutorial/configure-sharded-cluster-balancer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ migrate chunks, as described in the following procedures:

- :ref:`sharding-balancing-remove-window`.

The :program:`mongos` instances user their own local timezones to when
The :program:`mongos` instances use their own local timezones when
respecting balancer window.

.. _sharded-cluster-config-default-chunk-size:
Expand Down Expand Up @@ -117,7 +117,7 @@ Require Replication before Chunk Migration (Secondary Throttle)
``_secondaryThrottle`` became an option to the balancer and to
:dbcommand:`moveChunk` in 2.2.1. ``_secondaryThrottle`` makes it
possible to require the balancer wait for replication to
secondaries during migrations.
secondaries for all documents during migrations.

.. versionchanged:: 2.4
``_secondaryThrottle`` became the default mode for all balancer and
Expand Down