Skip to content

Commit 7b33247

Browse files
authored
DOCSP-48277 Wasteful Replan serverStatus Metrics (#13138)
1 parent 27a7381 commit 7b33247

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

content/manual/upcoming/source/reference/command/serverStatus.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4452,12 +4452,14 @@ planCache
44524452
hits : Long("<num>"),
44534453
misses : Long("<num>"),
44544454
replanned : Long("<num>"),
4455+
replanned_plan_is_cached_plan : Long("<num>"),
44554456
skipped : Long("<num>")
44564457
},
44574458
sbe : {
44584459
hits : Long("<num>"),
44594460
misses: Long("<num>"),
44604461
replanned : Long("<num>"),
4462+
replanned_plan_is_cached_plan : Long("<num>"),
44614463
skipped : Long("<num>")
44624464
}
44634465
}
@@ -4502,6 +4504,14 @@ planCache
45024504

45034505
.. versionadded:: 8.0 *(Also available in 7.0.22)*
45044506

4507+
.. serverstatus:: planCache.classic.replanned_plan_is_cached_plan
4508+
4509+
Number of times the server performed a replan operation for
4510+
the classic execution engine that produced a plan identical
4511+
to one already in the query cache.
4512+
4513+
.. versionadded:: 8.2
4514+
45054515
.. serverstatus:: planCache.classic.skipped
45064516

45074517
Number of classic execution engine query plans that were not found in the
@@ -4521,11 +4531,19 @@ planCache
45214531

45224532
.. serverstatus:: planCache.sbe.replanned
45234533

4524-
Number of |sbe-short| execution engine query plans that were
4525-
discarded and re-optimized.
4534+
Number of |sbe-short| query plans that were discarded and
4535+
re-optimized.
45264536

45274537
.. versionadded:: 8.0 *(Also available in 7.0.22)*
45284538

4539+
.. serverstatus:: planCache.sbe.replanned_plan_is_cached_plan
4540+
4541+
Number of times the server performed a replan operation for
4542+
the |sbe-short| that produced a plan identical to one already
4543+
in the query cache.
4544+
4545+
.. versionadded:: 8.2
4546+
45294547
.. serverstatus:: planCache.sbe.skipped
45304548

45314549
Number of |sbe-short| query plans that were not found in the
@@ -7922,4 +7940,4 @@ wiredTiger
79227940

79237941
Amount of time, in milliseconds, to create the most recent
79247942
checkpoint. An increase in this value under stead write load may
7925-
indicate saturation on the I/O subsystem.
7943+
indicate saturation on the I/O subsystem.

content/manual/upcoming/source/release-notes/8.2.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ serverStatus Output Change
9595

9696
:dbcommand:`serverStatus` includes the following new fields in its output:
9797

98-
Operation Metrics
99-
`````````````````
10098
- :serverstatus:`metrics.operation.killedDueToRangeDeletion`
10199

100+
- :serverstatus:`planCache.classic.replanned_plan_is_cached_plan`
101+
102+
- :serverstatus:`planCache.sbe.replanned_plan_is_cached_plan`
103+
104+
102105
.. toctree::
103106
:titlesonly:
104107
:hidden:

0 commit comments

Comments
 (0)