File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -2673,6 +2673,35 @@ Sharding Parameters
26732673
26742674 - :parameter:`maxTimeMSForHedgedReads`
26752675
2676+ .. parameter:: mongosShutdownTimeoutMillisForSignaledShutdown
2677+
2678+ .. versionadded:: 5.0
2679+
2680+ *Type*: integer
2681+
2682+ *Default*: 15000
2683+
2684+ |mongos-only|
2685+
2686+ Specifies the time (in milliseconds) to wait for any ongoing database
2687+ operations to complete before initiating a shutdown of
2688+ :binary:`~bin.mongos`.
2689+
2690+ For example, to set the time to 250 milliseconds, you can issue the
2691+ following during startup:
2692+
2693+ .. code-block:: sh
2694+
2695+ mongos --setParameter mongosShutdownTimeoutMillisForSignaledShutdown=250
2696+
2697+ Or if using the :dbcommand:`setParameter` command in a
2698+ :binary:`~bin.mongo` shell connected to a running
2699+ :binary:`~bin.mongos`:
2700+
2701+ .. code-block:: javascript
2702+
2703+ db.adminCommand( { setParameter: 1, mongosShutdownTimeoutMillisForSignaledShutdown: 250 } )
2704+
26762705.. parameter:: replMonitorMaxFailedChecks
26772706
26782707 *Available in MongoDB 3.2 only*
Original file line number Diff line number Diff line change @@ -129,6 +129,14 @@ Networking
129129General Improvements
130130--------------------
131131
132+ ``mongosShutdownTimeoutMillisForSignaledShutdown`` Parameter
133+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134+
135+ Starting in MongoDB 5.0, the new parameter
136+ :parameter:`mongosShutdownTimeoutMillisForSignaledShutdown` specifies
137+ the time in milliseconds to wait for any ongoing database operations to
138+ complete before initiating a shutdown of :binary:`~bin.mongos`.
139+
132140``reIndex`` Behavior Change
133141~~~~~~~~~~~~~~~~~~~~~~~~~~~
134142
You can’t perform that action at this time.
0 commit comments