Skip to content

Commit e54136b

Browse files
ianf-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14565 serverStatus lastOpEndingChunkImbalance
1 parent 7cf5c8e commit e54136b

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

source/reference/command/serverStatus.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,8 @@ shardingStatistics
28372837
"donorState" : <num>,
28382838
"recipientState" : <num>,
28392839
"coordinatorState" : <num>,
2840-
"opStatus" : <num>
2840+
"opStatus" : <num>,
2841+
"lastOpEndingChunkImbalance": NumberLong(<num>)
28412842
}
28422843
},
28432844

@@ -3605,6 +3606,20 @@ shardingStatistics
36053606

36063607
.. versionadded:: 5.0
36073608

3609+
.. serverstatus:: shardingStatistics.resharding.lastOpEndingChunkImbalance
3610+
3611+
This field contains the highest numeric difference for
3612+
(``maxNumChunksInShard - minNumChunksInShard``) among all
3613+
:ref:`zones <zone-sharding>` for the
3614+
collection that was processed by the most recent
3615+
:ref:`resharding operation <resharding_process>`.
3616+
3617+
See :ref:`sharding-chunk-size`.
3618+
3619+
*Only updated on config servers.*
3620+
3621+
.. versionadded:: 5.0
3622+
36083623
.. _server-status-sharded-index-consistency:
36093624

36103625
shardedIndexConsistency

source/release-notes/5.1.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ single-field non-TTL index.
7171
General Improvements
7272
--------------------
7373

74+
``serverStatus`` Output Change
75+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76+
77+
:dbcommand:`serverStatus` includes the following new fields in its
78+
output:
79+
80+
Resharding Statistics
81+
- :serverstatus:`shardingStatistics.resharding.lastOpEndingChunkImbalance`
82+
83+
7484
New Slot-Based Query Execution Engine
7585
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7686

0 commit comments

Comments
 (0)