Skip to content

Commit a31c154

Browse files
jason-price-mongodbandf-mongodb
authored andcommitted
DOCS-14152 Add server status cursor has more than one batch
1 parent adecd6a commit a31c154

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

source/reference/command/serverStatus.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4619,6 +4619,12 @@ metrics
46194619
"wtimeouts" : NumberLong(<num>)
46204620
}
46214621
},
4622+
"mongos" : {
4623+
"cursor" : {
4624+
"moreThanOneBatch" : NumberLong(<num>),
4625+
"totalOpened" : NumberLong(<num>)
4626+
}
4627+
},
46224628
"operation" : {
46234629
"scanAndOrder" : NumberLong(<num>),
46244630
"writeConflicts" : NumberLong(<num>)
@@ -4879,7 +4885,33 @@ metrics
48794885

48804886
Number of times a non-``clientSupplied`` write concern timed out.
48814887

4888+
.. _server-status-metrics-mongos:
4889+
4890+
.. serverstatus:: metrics.mongos
4891+
4892+
A document that contains metrics about :binary:`~bin.mongos`.
4893+
4894+
.. serverstatus:: metrics.mongos.cursor
4895+
4896+
A document that contains metrics for cursors used by
4897+
:binary:`~bin.mongos`.
4898+
4899+
.. serverstatus:: metrics.mongos.cursor.moreThanOneBatch
48824900

4901+
The total number of cursors that have returned more than one batch
4902+
since :binary:`~bin.mongos` started. Additional batches are retrieved
4903+
using the :dbcommand:`getMore` command.
4904+
4905+
.. versionadded:: 5.0
4906+
4907+
.. serverstatus:: metrics.mongos.cursor.totalOpened
4908+
4909+
The total number of cursors that have been opened since
4910+
:binary:`~bin.mongos` started, including cursors currently open.
4911+
Differs from :serverstatus:`metrics.cursor.open.total`, which is the
4912+
number of currently open cursors only.
4913+
4914+
.. versionadded:: 5.0
48834915

48844916
.. serverstatus:: metrics.operation
48854917

source/release-notes/5.0.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,17 @@ output:
371371
Cursor Metrics
372372
.. list-table::
373373

374-
* - | :serverstatus:`metrics.cursor.moreThanOneBatch`, which
375-
reports the total number of cursors that have returned
376-
more than one batch (additional batches are retrieved
377-
using the :dbcommand:`getMore` command)
378-
| :serverstatus:`metrics.cursor.totalOpened`, which reports
379-
the total number of cursors that have been opened
374+
* - | :serverstatus:`metrics.cursor.moreThanOneBatch` and
375+
:serverstatus:`metrics.mongos.cursor.moreThanOneBatch`,
376+
which report the total number of cursors that have
377+
returned more than one batch on :binary:`~bin.mongod` and
378+
:binary:`~bin.mongos` respectively (additional batches
379+
are retrieved using the :dbcommand:`getMore` command)
380+
| :serverstatus:`metrics.cursor.totalOpened` and
381+
:serverstatus:`metrics.mongos.cursor.totalOpened`, which
382+
report the total number of cursors that have been opened
383+
on :binary:`~bin.mongod` and :binary:`~bin.mongos`
384+
respectively
380385

381386
.. _5.0-rel-notes-shell:
382387

0 commit comments

Comments
 (0)