Skip to content

Commit ab3e58b

Browse files
authored
(DOCS-16446) Changes initial minimum number of chunks per shard for empty collections (#5216)
* (DOCS-16446) Changes initial minimum number of chunks per shard for empty collections * Includes copy review changes
1 parent 6fefa84 commit ab3e58b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/core/hashed-sharding.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,19 @@ Sharding Empty Collection on Single Field Hashed Shard Key
147147
- With no :ref:`zones and zone ranges <zones-sharding>` specified
148148
for the empty or non-existing collection:
149149

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.
157157

158158
- After the initial distribution, the balancer manages the chunk
159159
distribution going forward.
160160

161161
- 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:
164163

165164
- The sharding operation creates empty chunks for the defined zone
166165
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
173172

174173
Sharding Empty Collection on Compound Hashed Shard Key with Hashed Field Prefix
175174
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):
177176

178177
- With no zones and zone ranges specified
179178
for the empty or non-existing collection:
180179

181180
- The sharding operation creates empty chunks to cover the entire
182181
range of the shard key values and performs an initial chunk
183182
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.
189189

190190
- After the initial distribution, the balancer manages the chunk
191191
distribution going forward.

0 commit comments

Comments
 (0)