Skip to content

Commit ab91e88

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-27281-add-chunkSize-field (#2340)
Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 33a58a3 commit ab91e88

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/includes/sharding/balancer-status-defrag-example.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ If the queried namespace is going through chunk defragmentation, the
55
:copyable: false
66
77
{
8+
"chunkSize": Long("128"),
89
"balancerCompliant": false,
910
"firstComplianceViolation": "defragmentingChunks",
1011
"details": {

source/reference/command/balancerCollectionStatus.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The following is an example of a document returned by the command:
7070
.. code-block:: json
7171

7272
{
73+
"chunkSize": Long("128"),
7374
"balancerCompliant" : false,
7475
"firstComplianceViolation" : "chunksImbalance",
7576
"ok" : 1,
@@ -91,14 +92,16 @@ The following is an example of a document returned by the command:
9192
* - Field
9293
- Description
9394

94-
* - ``"balancerCompliant"``
95+
* - ``"chunkSize"``
96+
- .. versionadded:: 5.3
97+
98+
An integer that indicates the chunk size in megabytes.
9599

100+
* - ``"balancerCompliant"``
96101
- A boolean that indicates whether the chunks do not need to be
97102
moved (``true``) or need to be moved (``false``).
98103

99-
100104
* - ``"firstComplianceViolation"``
101-
102105
- A string that indicates the reason chunks for this namespace need
103106
to be moved. The field is only available if
104107
``"balancerCompliant"`` is ``false``.
@@ -113,26 +116,22 @@ The following is an example of a document returned by the command:
113116
- Description
114117

115118
* - ``"chunksImbalance"``
116-
117119
- The difference in the number of chunks between the shard
118120
with the most chunks for the collection and the shard
119121
with the fewest chunks for the collection exceed the
120122
:ref:`migration threshold<sharding-migration-thresholds>`.
121123

122124
* - ``"defragmentingChunks"``
123-
124125
- The queried namespace is currently going through the chunk
125126
defragmentation process. Defragmentation can be triggered
126127
by the :dbcommand:`configureCollectionBalancing` command.
127128

128129
* - ``"draining"``
129-
130130
- A :ref:`remove shard operation
131131
<remove-shard-remove-chunks>` is in progress and MongoDB
132132
must drain chunks off the removed shard to other shard(s).
133133

134134
* - ``"zoneViolation"``
135-
136135
- Chunks violate the :ref:`defined zone ranges
137136
<zone-sharding-balancer>` for a shard.
138137

@@ -144,7 +143,6 @@ The following is an example of a document returned by the command:
144143
``firstComplianceViolation``.
145144

146145
* - ``"details"``
147-
148146
- An object containing information on the ongoing defragmentation
149147
process. This object indicates the current phase of the
150148
defragmentation and how many chunks are left to process in that
@@ -177,6 +175,7 @@ returns an output similar to the following:
177175
:copyable: false
178176

179177
{
178+
"chunkSize": Long("128"),
180179
"balancerCompliant" : true,
181180
"ok" : 1,
182181
"operationTime" : Timestamp(1583193238, 1),

0 commit comments

Comments
 (0)