Skip to content

DOCS-14391 add replWriterMinThreadCount param #5440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2237,11 +2237,40 @@ Logical Session

|mongod-only|

Number of threads to use to apply replicated operations in parallel.
Values can range from 1 to 256 inclusive. You can only set
Maximum number of threads to use to apply replicated operations in
parallel. Values can range from 1 to 256 inclusive. You can only set
:parameter:`replWriterThreadCount` at startup and cannot change this
setting with the :dbcommand:`setParameter` command.

.. seealso::

:parameter:`replWriterMinThreadCount`

.. parameter:: replWriterMinThreadCount

.. versionadded:: 5.0

*Type*: integer

*Default*: 0

|mongod-only|

Minimum number of threads to use to apply replicated operations in
parallel. Values can range from 0 to 256 inclusive. You can only set
:parameter:`replWriterMinThreadCount` at startup and cannot change
this setting with the :dbcommand:`setParameter` command.

Parallel application of replication operations uses up to
:parameter:`replWriterThreadCount` threads. If
:parameter:`replWriterMinThreadCount` is configured with a value
less than :parameter:`replWriterThreadCount`, the thread pool will
timeout idle threads until the total count of threads in the thread
pool is equal to :parameter:`replWriterMinThreadCount`.

:parameter:`replWriterMinThreadCount` must be configured with a value
that is less than or equal to :parameter:`replWriterThreadCount`.

.. parameter:: rollbackTimeLimitSecs

*Type*: 64-bit integer
Expand Down
10 changes: 10 additions & 0 deletions source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,16 @@ Starting in MongoDB 5.0, the :rsconf:`members[n]._id` field may be any
integer value greater than or equal to ``0``. Previously, this value was
limited to an integer between ``0`` and ``255`` inclusive.

Enhanced Thread Pool Timeout Control
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting in MongoDB 5.0, you can use the new
:parameter:`replWriterMinThreadCount` server parameter to configure the
timeout of idle threads in the thread pool for parallel execution of
replication operations. When :parameter:`replWriterMinThreadCount` is
configured with a value less than :parameter:`replWriterThreadCount`,
idle threads above :parameter:`replWriterMinThreadCount` are timed out.

.. _5.0-rel-notes-security:

Security
Expand Down