File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -2237,11 +2237,40 @@ Logical Session
22372237
22382238 |mongod-only|
22392239
2240- Number of threads to use to apply replicated operations in parallel.
2241- Values can range from 1 to 256 inclusive. You can only set
2240+ Maximum number of threads to use to apply replicated operations in
2241+ parallel. Values can range from 1 to 256 inclusive. You can only set
22422242 :parameter:`replWriterThreadCount` at startup and cannot change this
22432243 setting with the :dbcommand:`setParameter` command.
22442244
2245+ .. seealso::
2246+
2247+ :parameter:`replWriterMinThreadCount`
2248+
2249+ .. parameter:: replWriterMinThreadCount
2250+
2251+ .. versionadded:: 5.0
2252+
2253+ *Type*: integer
2254+
2255+ *Default*: 0
2256+
2257+ |mongod-only|
2258+
2259+ Minimum number of threads to use to apply replicated operations in
2260+ parallel. Values can range from 0 to 256 inclusive. You can only set
2261+ :parameter:`replWriterMinThreadCount` at startup and cannot change
2262+ this setting with the :dbcommand:`setParameter` command.
2263+
2264+ Parallel application of replication operations uses up to
2265+ :parameter:`replWriterThreadCount` threads. If
2266+ :parameter:`replWriterMinThreadCount` is configured with a value
2267+ less than :parameter:`replWriterThreadCount`, the thread pool will
2268+ timeout idle threads until the total count of threads in the thread
2269+ pool is equal to :parameter:`replWriterMinThreadCount`.
2270+
2271+ :parameter:`replWriterMinThreadCount` must be configured with a value
2272+ that is less than or equal to :parameter:`replWriterThreadCount`.
2273+
22452274.. parameter:: rollbackTimeLimitSecs
22462275
22472276 *Type*: 64-bit integer
Original file line number Diff line number Diff line change @@ -201,6 +201,16 @@ Starting in MongoDB 5.0, the :rsconf:`members[n]._id` field may be any
201201integer value greater than or equal to ``0``. Previously, this value was
202202limited to an integer between ``0`` and ``255`` inclusive.
203203
204+ Enhanced Thread Pool Timeout Control
205+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
206+
207+ Starting in MongoDB 5.0, you can use the new
208+ :parameter:`replWriterMinThreadCount` server parameter to configure the
209+ timeout of idle threads in the thread pool for parallel execution of
210+ replication operations. When :parameter:`replWriterMinThreadCount` is
211+ configured with a value less than :parameter:`replWriterThreadCount`,
212+ idle threads above :parameter:`replWriterMinThreadCount` are timed out.
213+
204214.. _5.0-rel-notes-security:
205215
206216Security
You can’t perform that action at this time.
0 commit comments