Skip to content

Commit a726a4a

Browse files
(DOCS-16586): BACKPORT persistedChunkCacheUpdateMaxBatchSize parameter (#5856)
* (DOCS-16478): persistedChunkCacheUpdateMaxBatchSize parameter (#5270) (#5347) (#5850) * (DOCS-16394): persistedChunkCacheUpdateMaxBatchSize parameter (#5270) * (DOCS-16394): persistedChunkCacheUpdateMaxBatchSize parameter * add example * update version list * add 7.2 to release notes toc * address review comments * edits * minimalism * tweak * wording * address review comments * Adjust version numbers * (DOCS-16586): BACKPORT persistedChunkCacheUpdateMaxBatchSize parameter * fix version number
1 parent b5f843e commit a726a4a

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

source/reference/parameters.txt

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Authentication Parameters
9696
<https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__ or `AWS IAM environment variables
9797
<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list>`__.
9898

99-
Maximim number of AWS IAM authentication retries after a connection
99+
Maximum number of AWS IAM authentication retries after a connection
100100
failure.
101101

102102
The following example sets :parameter:`awsSTSRetryCount` to ``15``
@@ -3957,6 +3957,47 @@ Sharding Parameters
39573957

39583958
db.adminCommand( { setParameter: 1, orphanCleanupDelaySecs: 1200 } )
39593959

3960+
.. parameter:: persistedChunkCacheUpdateMaxBatchSize
3961+
3962+
.. versionadded:: 5.0.25
3963+
3964+
|mongod-only|
3965+
3966+
Type: Integer
3967+
3968+
Default: 1000
3969+
3970+
To route and serve operations, shards must know the routing and
3971+
ownership information associated with their collections. This
3972+
information propogates from a shard's primary node to its
3973+
secondary nodes through the replication of the internal cache
3974+
collections ``config.cache.collections`` and
3975+
``config.cache.chunks.<collectionName>``.
3976+
3977+
In previous versions, updates on the chunk cache collection were
3978+
performed individually (meaning that an entry was deleted and a new
3979+
entry was inserted). Starting in MongoDB 5.0.25, these updates are
3980+
performed as a batch of deletions followed by a batch of insertions.
3981+
The updated logic improves performance for collections that contain a
3982+
large number of chunks.
3983+
3984+
The ``persistedChunkCacheUpdateMaxBatchSize`` parameter specifies the
3985+
maximum batch size used for updating the persisted chunk cache.
3986+
3987+
The following example sets ``persistedChunkCacheUpdateMaxBatchSize``
3988+
to 700 at startup:
3989+
3990+
.. code-block:: bash
3991+
3992+
mongod --setParameter persistedChunkCacheUpdateMaxBatchSize=700
3993+
3994+
You can also set ``persistedChunkCacheUpdateMaxBatchSize`` during
3995+
runtime:
3996+
3997+
.. code-block:: javascript
3998+
3999+
db.adminCommand( { setParameter: 1, persistedChunkCacheUpdateMaxBatchSize: 700 } )
4000+
39604001
.. parameter:: rangeDeleterBatchDelayMS
39614002

39624003
|mongod-only|

0 commit comments

Comments
 (0)