You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If set to ``auto``, turns on the automated master discovery in a replica set.
183
+
184
+
[TBD]
185
+
A router goes to the replica sets marked as having an auto master discovery, finds a master in them, and periodically checks if the master is still a master.
186
+
When the master in a replica set stops being a master, the router goes around all the nodes of the replica set and finds out which one is the new master.
187
+
188
+
[TBD]
189
+
Without this setting, a router is not able to find master nodes in the configured replica sets on its own. It relies only on how they are specified in the configuration.
190
+
This becomes a problem when master changes and the change is not delivered to the router's configuration. For instance, the router does not rely on a central config provider.
191
+
Or it does rely, but the provider can't deliver a new configuration due to any reason.
192
+
193
+
This is getting especially tricky with the :ref:`built-in automatic master election <TBD>` which is not supported by vshard yet.
194
+
It doesn't depend on any configuration, and the master/leader role isn't pinned to one node.
195
+
196
+
197
+
The parameter should be specified per replica set and is not compatible with specifying a master manually.
:ref:`Master discovery <TBD>` works in its own fiber on the router, which is activated only if at least one replica set is :ref:`configured <>` to look for the master.
903
+
It wakes up with a certain period. But it is possible to wake it up on demand by using this function.
904
+
905
+
[TBD] To wake the fiber up manually can be useful in speeding up tests for changing the master. Another use case is when you in the router console and is going to do some actions on the router.
906
+
907
+
It does nothing if the master search is not configured for any replica set.
0 commit comments