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
(Attempts to sync will continue in the background and when/if they succeed
100
-
then 'orphan' will be changed to 'connected'.)
92
+
2. Try to establish connections to all other nodes for the
93
+
:ref:`replication_connect_timeout <cfg_replication-replication_connect_timeout>` number of seconds.
94
+
Once ``replication_connect_timeout`` is expired or all the connections are established, proceed to the "sync" state with all the established connections.
101
95
102
-
3. If connected - sync with all connected nodes, until the difference is not more than
96
+
3. If connected, sync with all connected nodes, until the difference is not more than
Specifies a strategy used to bootstrap a :ref:`replica set <replication-bootstrap>`.
215
+
The following strategies are available:
216
+
217
+
* ``auto``: a node doesn't boot if a half or more of other nodes in a replica set are not connected.
218
+
For example, if the :ref:`replication <cfg_replication-replication>` parameter contains 2 or 3 nodes,
219
+
a node requires 2 connected instances.
220
+
In the case of 4 or 5 nodes, at least 3 connected instances are required.
221
+
Moreover, a bootstrap leader fails to boot unless every connected node has chosen it as a bootstrap leader.
222
+
223
+
* ``legacy``: a node requires the :ref:`replication_connect_quorum <cfg_replication-replication_connect_quorum>` number of other nodes to be connected.
224
+
225
+
|Type: string
226
+
|Default: auto
227
+
|Environment variable: TT_BOOTSTRAP_STRATEGY
228
+
|Dynamic: **yes**
229
+
230
+
207
231
.. _cfg_replication-replication_connect_timeout:
208
232
209
233
.. confval:: replication_connect_timeout
@@ -228,25 +252,21 @@
228
252
.. confval:: replication_connect_quorum
229
253
230
254
Since version 1.9.0.
231
-
By default a replica will try to connect to all the masters,
232
-
or it will not start. (The default is recommended so that all replicas
233
-
will receive the same replica set UUID.)
255
+
Specifies the number of nodes to be up and running to start a replica set.
256
+
Since version 2.11, this option is in effect if :ref:`bootstrap_strategy <cfg_replication-bootstrap_strategy>`
257
+
is set to ``legacy``.
234
258
235
-
However, by specifying ``replication_connect_quorum = N``, where
236
-
N is a number greater than or equal to zero,
237
-
users can state that the replica only needs to connect to N masters.
238
-
239
-
This parameter has effect during bootstrap and during
259
+
This parameter has effect during :ref:`bootstrap <replication-leader>` or
0 commit comments