-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Docs 782 writebacksqueued #428
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,59 @@ writeBacksQueued (internal) | |
=========================== | ||
|
||
.. default-domain:: mongodb | ||
|
||
.. dbcommand:: writeBacksQueued | ||
|
||
:dbcommand:`writeBacksQueued` is an internal command that returns true if | ||
there are operations in the write back queue for the given :program:`mongos`. | ||
This command applies to :term:`sharded clusters <sharded cluster>` only. | ||
:dbcommand:`writeBacksQueued` is an internal command that returns | ||
a document reporting there are operations in the write back queue | ||
for the given :program:`mongos` and information about the queues. | ||
|
||
:field Boolean hasOpsQueued: | ||
|
||
True if there are writeBack operations queued. | ||
|
||
:field integer totalOpsQueued: | ||
|
||
The number of operations queued. | ||
|
||
:field document queues: | ||
|
||
A document listing the queues, with fields detailing the size of | ||
each queue and the time since the last call. | ||
|
||
:field document queues.n: | ||
|
||
The size of the queue. | ||
|
||
:field document queues.minutesSinceLastCall: | ||
|
||
The minutes since the last call. | ||
|
||
Examples | ||
-------- | ||
|
||
.. code-block:: javascript | ||
|
||
> db.runCommand({writeBacksQueued: 1}) | ||
{ | ||
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. whitespace is weird: tabs rather than three spaces? I also prefer to avoid shell session copypasta. Report the output and the commands separately, rather than force people to parse shell scroll back. |
||
"hasOpsQueued" : true, | ||
"totalOpsQueued" : 7, | ||
"queues" : { | ||
"50a514204a0f431ff1944089" : { "n" : 0, "minutesSinceLastCall" : 1 }, | ||
"50a854a2c302ba1c5aeaaf59" : { "n" : 0, "minutesSinceLastCall" : 0 }, | ||
"50a854b65bbdacd51df98cb6" : { "n" : 0, "minutesSinceLastCall" : 0 }, | ||
"50a854c6ff03535c6effb72e" : { "n" : 0, "minutesSinceLastCall" : 0 }, | ||
"50a8553566232f70121071b3" : { "n" : 0, "minutesSinceLastCall" : 4 }, | ||
"50aa4711bd3c78d62453017e" : { "n" : 0, "minutesSinceLastCall" : 0 }, | ||
"50ac0df0293da708be675123" : { "n" : 0, "minutesSinceLastCall" : 1 } | ||
}, | ||
"ok" : 1 | ||
} | ||
|
||
|
||
.. slave-ok, admin-only | ||
|
||
.. slave-ok, admin-only | ||
.. The queue ids are BSON objectids, they correspond to the | ||
mongos that has talked to this shard. This is derived from the | ||
"serverID" field of the setShardVersion command the mongos | ||
sends to the shard |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
putting headings on this page will break the pages with all of the includes. because it'll include the whole file and randomly have an "examples" heading in the output.