@@ -13,18 +13,25 @@ flushRouterConfig
13
13
.. dbcommand:: flushRouterConfig
14
14
15
15
:dbcommand:`flushRouterConfig` clears the cached routing table in a
16
- :binary:`~bin.mongos` instance. Subsequent :binary:`~bin.mongos`
17
- commands update the routing table as routes are needed.
16
+ :binary:`~bin.mongos` instance. Subsequent commands against that
17
+ :binary:`~bin.mongos` will repopulate the routing table cache from
18
+ the :term:`config server` as they execute.
18
19
19
- When this command is called, it forces an update when the
20
- configuration database holds data that is more recent than the data
21
- cached in the :binary:`~bin.mongos` process.
20
+ Use this command to force the routing table cache to be refreshed
21
+ from the :term:`config server` if it contains more recent data. In
22
+ most cases, this happens automatically. You should need to run
23
+ :dbcommand:`flushRouterConfig` only after :dbcommand:`movePrimary`
24
+ has been run.
25
+
26
+ .. seealso::
27
+
28
+ For when and why :dbcommand:`flushRouterConfig` is run, see
29
+ **Considerations** on the :dbcommand:`movePrimary` page.
22
30
23
31
.. warning::
24
32
25
- Do not modify the config data, except as explicitly
26
- documented. A config database cannot typically tolerate manual
27
- manipulation.
33
+ Do not modify the routing table data except when it is
34
+ explicitly documented.
28
35
29
36
:dbcommand:`flushRouterConfig` is an administrative command that is
30
37
only available for :binary:`~bin.mongos` instances.
0 commit comments