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
A weight of a replica set. See the :ref:`Replica set weights <vshard-replica-set-weights>`
202
+
section for details.
203
+
204
+
|Type:
205
+
|Default: 1
206
+
|Dynamic:
207
+
208
+
.. _cfg_replica_set-master:
179
209
180
210
.. confval:: master
181
211
182
212
Turns on automated master discovery in a replica set if set to ``auto``.
183
213
Applicable only to the configuration of a router; the storage configuration ignores this parameter.
184
214
185
-
The parameter should be specified per replica set and is not compatible with manual master selection.
215
+
The parameter should be specified per replica set.
216
+
The configuration is not compatible with a manual master selection.
186
217
187
218
**Examples**
188
219
@@ -227,48 +258,19 @@ Basic parameters
227
258
...
228
259
}
229
260
230
-
If configuration is incorrect configuration, it is not applied, and the ``vshard.router.cfg()`` call throws an error.
231
-
261
+
If the configuration is incorrect, it is not applied, and the ``vshard.router.cfg()`` call throws an error.
232
262
233
-
If the ``master`` parameter is set to ``auto`` for some replica sets, the router goes to these replica sets, discovers the master in each of them, and periodically checks if the master instance still has its master status.
234
-
When the master in the 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.
263
+
If the ``master`` parameter is set to ``auto`` for some replica sets, the router goes to these replica sets,
264
+
discovers the master in each of them, and periodically checks if the master instance still has its master status.
265
+
When the master in the replica set stops being a master, the router goes around all the nodes of the replica set
266
+
to find out which one is the new master.
235
267
236
268
Without this setting, the router cannot detect master nodes in the configured replica sets on its own.
237
269
It relies only on how they are specified in the configuration.
238
-
This becomes a problem when the master changes and the change is not delivered to the router's configuration:
270
+
This becomes a problem when the master changes, and the change is not delivered to the router's configuration:
239
271
for instance, in case the router doesn't rely on a central configuration provider
240
272
or the provider cannot deliver a new configuration due to some reason.
0 commit comments