Skip to content

Commit d7a1a87

Browse files
(DOCS-16478): persistedChunkCacheUpdateMaxBatchSize parameter (#5270) (#5347)
* (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
1 parent 00883e3 commit d7a1a87

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
@@ -98,7 +98,7 @@ Authentication Parameters
9898
<https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__ or `AWS IAM environment variables
9999
<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list>`__.
100100

101-
Maximim number of AWS IAM authentication retries after a connection
101+
Maximum number of AWS IAM authentication retries after a connection
102102
failure.
103103

104104
The following example sets :parameter:`awsSTSRetryCount` to ``15``
@@ -4757,6 +4757,47 @@ Sharding Parameters
47574757
only applied to range deletions created after the value is changed. To
47584758
apply the new value to existing range deletions, :ref:`force a step down <rs.stepDown-behavior>`.
47594759

4760+
.. parameter:: persistedChunkCacheUpdateMaxBatchSize
4761+
4762+
.. versionadded:: 7.1.1 (and 7.0.4)
4763+
4764+
|mongod-only|
4765+
4766+
Type: Integer
4767+
4768+
Default: 1000
4769+
4770+
To route and serve operations, shards must know the routing and
4771+
ownership information associated with their collections. This
4772+
information propogates from a shard's primary node to its
4773+
secondary nodes through the replication of the internal cache
4774+
collections ``config.cache.collections`` and
4775+
``config.cache.chunks.<collectionName>``.
4776+
4777+
In previous versions, updates on the chunk cache collection were
4778+
performed individually (meaning that an entry was deleted and a new
4779+
entry was inserted). Starting in MongoDB 7.1.1, these updates are
4780+
performed as a batch of deletions followed by a batch of insertions.
4781+
The updated logic improves performance for collections that contain a
4782+
large number of chunks.
4783+
4784+
The ``persistedChunkCacheUpdateMaxBatchSize`` parameter specifies the
4785+
maximum batch size used for updating the persisted chunk cache.
4786+
4787+
The following example sets ``persistedChunkCacheUpdateMaxBatchSize``
4788+
to 700 at startup:
4789+
4790+
.. code-block:: bash
4791+
4792+
mongod --setParameter persistedChunkCacheUpdateMaxBatchSize=700
4793+
4794+
You can also set ``persistedChunkCacheUpdateMaxBatchSize`` during
4795+
runtime:
4796+
4797+
.. code-block:: javascript
4798+
4799+
db.adminCommand( { setParameter: 1, persistedChunkCacheUpdateMaxBatchSize: 700 } )
4800+
47604801
.. parameter:: rangeDeleterBatchDelayMS
47614802

47624803
|mongod-only|

0 commit comments

Comments
 (0)