Skip to content

Commit 3d1b242

Browse files
DOCS-16015 Add SBE Plan Cache Metrics to Server Status Page (#4124)
* DOCS-16015 Add SBE Plan Cache Metrics to Server Status Page * * * * * * * * * * * * * * * * * IR feedback * * * Apply suggestions from code review Co-authored-by: Ashley Brown <[email protected]> --------- Co-authored-by: Ashley Brown <[email protected]>
1 parent 41968c9 commit 3d1b242

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

source/reference/command/serverStatus.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,10 @@ metrics
16981698
]
16991699
}
17001700
},
1701+
planCache: {
1702+
classic: { hits: Long("<num>"), misses: Long("<num>") },
1703+
sbe: { hits: Long("<num>"), misses: Long("<num>") }
1704+
},
17011705
queryFramework: {
17021706
aggregate: {
17031707
classicHybrid: Long("<num>"),
@@ -3825,6 +3829,44 @@ oplogTruncation
38253829

38263830
Available in the :doc:`/core/wiredtiger`.
38273831

3832+
.. _server-status-planCache:
3833+
3834+
planCache
3835+
~~~~~~~~~
3836+
3837+
.. versionadded:: 7.0
3838+
3839+
.. code-block:: javascript
3840+
3841+
planCache: {
3842+
classic: { hits: Long("<num>"), misses: Long("<num>") },
3843+
sbe: { hits: Long("<num>"), misses: Long("<num>") }
3844+
}
3845+
3846+
.. serverstatus:: planCache
3847+
3848+
A document that reports query plan cache statistics.
3849+
3850+
.. serverstatus:: planCache.classic.hits
3851+
3852+
Number of classic execution engine query plans found in the query
3853+
cache and reused to avoid the query planning phase.
3854+
3855+
.. serverstatus:: planCache.classic.misses
3856+
3857+
Number of classic execution engine query plans which were not found
3858+
in the query cache and went through the query planning phase.
3859+
3860+
.. serverstatus:: planCache.sbe.hits
3861+
3862+
Number of slot-based execution engine query plans found in the query
3863+
cache and reused to avoid the query planning phase.
3864+
3865+
.. serverstatus:: planCache.sbe.misses
3866+
3867+
Number of slot-based execution engine query plans which were not found
3868+
in the query cache and went through the query planning phase.
3869+
38283870
.. _server-status-readConcernCounters:
38293871

38303872
readConcernCounters

source/release-notes/7.0.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,15 @@ on ``mongos`` for every operation that used collection routing
324324
information even if the operation wasn't blocked by a catalog refresh
325325
activity.
326326

327+
``serverStatus`` Output Change
328+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
329+
330+
:dbcommand:`serverStatus` includes the following new fields in its
331+
output:
332+
333+
Plan Cache Metrics
334+
- :serverstatus:`planCache`
335+
327336
.. _7.0-rapid-release-changes:
328337

329338
Changes Introduced in 6.X-Series Rapid Releases

0 commit comments

Comments
 (0)