@@ -147,20 +147,19 @@ Sharding Empty Collection on Single Field Hashed Shard Key
147
147
- With no :ref:`zones and zone ranges <zones-sharding>` specified
148
148
for the empty or non-existing collection:
149
149
150
- - The sharding operation creates empty chunks to cover the entire
151
- range of the shard key values and performs an initial chunk
152
- distribution. By default, the operation creates 2 chunks per shard
153
- and migrates across the cluster. You can use ``numInitialChunks``
154
- option to specify a different number of initial chunks. This
155
- initial creation and distribution of chunks allows for faster
156
- setup of sharding.
150
+ - The sharding operation creates an empty chunk to cover the entire
151
+ range of the shard key values. Starting in version 7.2, the
152
+ operation creates 1 chunk per shard by default and migrates
153
+ across the cluster. You can use ``numInitialChunks`` option to
154
+ specify a different number of initial chunks and cause an initial
155
+ chunk distribution. This initial creation and distribution of
156
+ chunks allows for faster setup of sharding.
157
157
158
158
- After the initial distribution, the balancer manages the chunk
159
159
distribution going forward.
160
160
161
161
- With zones and zone ranges specified
162
- for the empty or a non-existing collection (Available starting in
163
- MongoDB 4.0.3):
162
+ for the empty or a non-existing collection:
164
163
165
164
- The sharding operation creates empty chunks for the defined zone
166
165
ranges as well as any additional chunks to cover the entire range
@@ -173,19 +172,20 @@ Sharding Empty Collection on Single Field Hashed Shard Key
173
172
174
173
Sharding Empty Collection on Compound Hashed Shard Key with Hashed Field Prefix
175
174
If the compound hashed shard key has the hashed field as the prefix
176
- (i.e. the hashed field is the first field in the shard key):
175
+ (the hashed field is the first field in the shard key):
177
176
178
177
- With no zones and zone ranges specified
179
178
for the empty or non-existing collection:
180
179
181
180
- The sharding operation creates empty chunks to cover the entire
182
181
range of the shard key values and performs an initial chunk
183
182
distribution. The value of all non-hashed fields is :bsontype:`MinKey` at
184
- each split point. By default, the operation creates 2 chunks per
185
- shard and migrates across the cluster. You can use
186
- ``numInitialChunks`` option to specify a different number of
187
- initial chunks. This initial creation and distribution of chunks
188
- allows for faster setup of sharding.
183
+ each split point. Starting in version 7.2, the operation creates
184
+ 1 chunk per shard by default and migrates across the cluster. You
185
+ can use ``numInitialChunks`` option to specify a different number
186
+ of initial chunks and cause an initial chunk distribution. This
187
+ initial creation and distribution of chunks allows for faster
188
+ setup of sharding.
189
189
190
190
- After the initial distribution, the balancer manages the chunk
191
191
distribution going forward.
0 commit comments