From 3803e2e4453bcdb35b916b3a491f301e6602f089 Mon Sep 17 00:00:00 2001 From: andf-mongodb Date: Fri, 11 Jun 2021 16:27:45 -0400 Subject: [PATCH] DOCS-14391 add replWriterMinThreadCount param --- source/reference/parameters.txt | 33 +++++++++++++++++++++++++++++++-- source/release-notes/5.0.txt | 10 ++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/source/reference/parameters.txt b/source/reference/parameters.txt index cce418988ba..2d218796f74 100644 --- a/source/reference/parameters.txt +++ b/source/reference/parameters.txt @@ -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 diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index 4774408f0ea..862d4cba278 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -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