@@ -70,6 +70,7 @@ The following is an example of a document returned by the command:
70
70
.. code-block:: json
71
71
72
72
{
73
+ "chunkSize": Long("128"),
73
74
"balancerCompliant" : false,
74
75
"firstComplianceViolation" : "chunksImbalance",
75
76
"ok" : 1,
@@ -91,14 +92,16 @@ The following is an example of a document returned by the command:
91
92
* - Field
92
93
- Description
93
94
94
- * - ``"balancerCompliant"``
95
+ * - ``"chunkSize"``
96
+ - .. versionadded:: 5.3
97
+
98
+ An integer that indicates the chunk size in megabytes.
95
99
100
+ * - ``"balancerCompliant"``
96
101
- A boolean that indicates whether the chunks do not need to be
97
102
moved (``true``) or need to be moved (``false``).
98
103
99
-
100
104
* - ``"firstComplianceViolation"``
101
-
102
105
- A string that indicates the reason chunks for this namespace need
103
106
to be moved. The field is only available if
104
107
``"balancerCompliant"`` is ``false``.
@@ -113,26 +116,22 @@ The following is an example of a document returned by the command:
113
116
- Description
114
117
115
118
* - ``"chunksImbalance"``
116
-
117
119
- The difference in the number of chunks between the shard
118
120
with the most chunks for the collection and the shard
119
121
with the fewest chunks for the collection exceed the
120
122
:ref:`migration threshold<sharding-migration-thresholds>`.
121
123
122
124
* - ``"defragmentingChunks"``
123
-
124
125
- The queried namespace is currently going through the chunk
125
126
defragmentation process. Defragmentation can be triggered
126
127
by the :dbcommand:`configureCollectionBalancing` command.
127
128
128
129
* - ``"draining"``
129
-
130
130
- A :ref:`remove shard operation
131
131
<remove-shard-remove-chunks>` is in progress and MongoDB
132
132
must drain chunks off the removed shard to other shard(s).
133
133
134
134
* - ``"zoneViolation"``
135
-
136
135
- Chunks violate the :ref:`defined zone ranges
137
136
<zone-sharding-balancer>` for a shard.
138
137
@@ -144,7 +143,6 @@ The following is an example of a document returned by the command:
144
143
``firstComplianceViolation``.
145
144
146
145
* - ``"details"``
147
-
148
146
- An object containing information on the ongoing defragmentation
149
147
process. This object indicates the current phase of the
150
148
defragmentation and how many chunks are left to process in that
@@ -177,6 +175,7 @@ returns an output similar to the following:
177
175
:copyable: false
178
176
179
177
{
178
+ "chunkSize": Long("128"),
180
179
"balancerCompliant" : true,
181
180
"ok" : 1,
182
181
"operationTime" : Timestamp(1583193238, 1),
0 commit comments