Skip to content

Commit 03b6ef2

Browse files
(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
1 parent c99edba commit 03b6ef2

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
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``
@@ -4718,6 +4718,47 @@ Sharding Parameters
47184718
only applied to range deletions created after the value is changed. To
47194719
apply the new value to existing range deletions, :ref:`force a step down <rs.stepDown-behavior>`.
47204720

4721+
.. parameter:: persistedChunkCacheUpdateMaxBatchSize
4722+
4723+
.. versionadded:: 7.2 (and 7.1.1, 7.0.4)
4724+
4725+
|mongod-only|
4726+
4727+
Type: Integer
4728+
4729+
Default: 1000
4730+
4731+
To route and serve operations, shards must know the routing and
4732+
ownership information associated with their collections. This
4733+
information propogates from a shard's primary node to its
4734+
secondary nodes through the replication of the internal cache
4735+
collections ``config.cache.collections`` and
4736+
``config.cache.chunks.<collectionName>``.
4737+
4738+
In previous versions, updates on the chunk cache collection were
4739+
performed individually (meaning that an entry was deleted and a new
4740+
entry was inserted). Starting in MongoDB 7.2, these updates are
4741+
performed as a batch of deletions followed by a batch of insertions.
4742+
The updated logic improves performance for collections that contain a
4743+
large number of chunks.
4744+
4745+
The ``persistedChunkCacheUpdateMaxBatchSize`` parameter specifies the
4746+
maximum batch size used for updating the persisted chunk cache.
4747+
4748+
The following example sets ``persistedChunkCacheUpdateMaxBatchSize``
4749+
to 700 at startup:
4750+
4751+
.. code-block:: bash
4752+
4753+
mongod --setParameter persistedChunkCacheUpdateMaxBatchSize=700
4754+
4755+
You can also set ``persistedChunkCacheUpdateMaxBatchSize`` during
4756+
runtime:
4757+
4758+
.. code-block:: javascript
4759+
4760+
db.adminCommand( { setParameter: 1, persistedChunkCacheUpdateMaxBatchSize: 700 } )
4761+
47214762
.. parameter:: rangeDeleterBatchDelayMS
47224763

47234764
|mongod-only|

source/release-notes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To see changes in MongoDB releases, see the following release notes.
1616
Upcoming Release
1717
~~~~~~~~~~~~~~~~
1818

19-
- :ref:`release-notes-7.1`
19+
- :ref:`release-notes-7.2`
2020

2121
Current Rapid Release
2222
~~~~~~~~~~~~~~~~~~~~~
@@ -25,7 +25,7 @@ Current Rapid Release
2525

2626
.. include:: /includes/rapid-release-short.rst
2727

28-
- :ref:`release-notes-6.3`
28+
- :ref:`release-notes-7.1`
2929

3030
Current Stable Release
3131
~~~~~~~~~~~~~~~~~~~~~~

source/release-notes/7.1.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _release-notes-7.1:
22

3-
=================================================
4-
Release Notes for MongoDB 7.1 (Release Candidate)
5-
=================================================
3+
=============================
4+
Release Notes for MongoDB 7.1
5+
=============================
66

77
.. default-domain:: mongodb
88

0 commit comments

Comments
 (0)