Skip to content

DOCS-14036 New server parameter shutdownTimeoutMillisForSignaledShutdown #4806

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
29 changes: 29 additions & 0 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,35 @@ Sharding Parameters

- :parameter:`maxTimeMSForHedgedReads`

.. parameter:: mongosShutdownTimeoutMillisForSignaledShutdown

.. versionadded:: 5.0

*Type*: integer

*Default*: 15000

|mongos-only|

Specifies the time (in milliseconds) to wait for any ongoing database
operations to complete before initiating a shutdown of
:binary:`~bin.mongos`.

For example, to set the time to 250 milliseconds, you can issue the
following during startup:

.. code-block:: sh

mongos --setParameter mongosShutdownTimeoutMillisForSignaledShutdown=250

Or if using the :dbcommand:`setParameter` command in a
:binary:`~bin.mongo` shell connected to a running
:binary:`~bin.mongos`:

.. code-block:: javascript

db.adminCommand( { setParameter: 1, mongosShutdownTimeoutMillisForSignaledShutdown: 250 } )

.. parameter:: replMonitorMaxFailedChecks

*Available in MongoDB 3.2 only*
Expand Down
8 changes: 8 additions & 0 deletions source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ Networking
General Improvements
--------------------

``mongosShutdownTimeoutMillisForSignaledShutdown`` Parameter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting in MongoDB 5.0, the new parameter
:parameter:`mongosShutdownTimeoutMillisForSignaledShutdown` specifies
the time in milliseconds to wait for any ongoing database operations to
complete before initiating a shutdown of :binary:`~bin.mongos`.

``reIndex`` Behavior Change
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down