-
Notifications
You must be signed in to change notification settings - Fork 1.7k
(DOCS-9990, -10826): Updated flushRouterConfig. #3262
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,13 @@ flushRouterConfig | |
|
||
.. dbcommand:: flushRouterConfig | ||
|
||
:dbcommand:`flushRouterConfig` clears the current cluster | ||
information cached by a :binary:`~bin.mongos` instance and reloads all | ||
:term:`sharded cluster` metadata from the :term:`config database`. | ||
:dbcommand:`flushRouterConfig` clears the cached routing table in a | ||
:binary:`~bin.mongos` instance. Subsequent :binary:`~bin.mongos` | ||
commands update the routing table as routes are needed. | ||
|
||
This forces an update when the configuration database holds data | ||
that is newer than the data cached in the :binary:`~bin.mongos` | ||
process. | ||
When this command is called, it forces an update when the | ||
configuration database holds data that is more recent than the data | ||
cached in the :binary:`~bin.mongos` process. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sounds a little awkward. How about: Use this command to force the routing table cache to be refreshed from the config server when there is possibility that it contains a more recent data. In almost all cases, this happens automatically, so it typically only needs to be done after a movePrimary as per instructions. |
||
|
||
.. warning:: | ||
|
||
|
@@ -29,4 +29,12 @@ flushRouterConfig | |
:dbcommand:`flushRouterConfig` is an administrative command that is | ||
only available for :binary:`~bin.mongos` instances. | ||
|
||
Call this command using the following form: | ||
|
||
.. example:: | ||
|
||
.. code-block:: javascript | ||
|
||
db.adminCommand("flushRouterConfig") | ||
|
||
.. versionadded:: 1.8.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subsequent commands against that :binary:
~bin.mongos
will repopulate the routing table cache from the config server as they execute.