Skip to content

Commit fd5d283

Browse files
committed
3.0 new iproto format: manual leader
1 parent f03a7bd commit fd5d283

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

doc/code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ credentials:
66

77
iproto:
88
advertise:
9-
peer: replicator@
9+
peer:
10+
login: replicator
1011

1112
replication:
1213
failover: manual
@@ -19,13 +20,16 @@ groups:
1920
instances:
2021
instance001:
2122
iproto:
22-
listen: 127.0.0.1:3301
23+
listen:
24+
- uri: '127.0.0.1:3301'
2325
instance002:
2426
iproto:
25-
listen: 127.0.0.1:3302
27+
listen:
28+
- uri: '127.0.0.1:3302'
2629
instance003:
2730
iproto:
28-
listen: 127.0.0.1:3303
31+
listen:
32+
- uri: '127.0.0.1:3303'
2933

3034
# Load sample data
3135
app:

doc/concepts/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ You can learn more about configuring replication from :ref:`Replication tutorial
156156
- ``iproto`` (*global*, *instance*)
157157

158158
The ``iproto`` section is specified on both global and instance levels.
159-
The ``iproto.advertise.peer`` option specifies a URI used by an instance to connect to another instance as a replica.
160-
In the example above, the URI includes a user name only.
161-
A host value is taken from ``iproto.listen`` that is set on the instance level.
159+
The ``iproto.advertise.peer`` option specifies the parameters used by an instance to connect to another instance as a replica, for example, a URI, a login and password, or SSL parameters .
160+
In the example above, the option includes ``login`` only.
161+
An URI is taken from ``iproto.listen`` that is set on the instance level.
162162

163163
- ``replication``: (*global*)
164164

doc/how-to/replication/repl_bootstrap.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Define a replica set topology inside the :ref:`groups <configuration_reference_g
6868
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
6969
:language: yaml
7070
:start-at: groups:
71-
:end-at: listen: 127.0.0.1:3302
71+
:end-at: 127.0.0.1:3302
7272
:dedent:
7373

7474

@@ -96,7 +96,7 @@ Set :ref:`iproto.advertise.peer <configuration_reference_iproto_advertise_peer>`
9696
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
9797
:language: yaml
9898
:start-at: iproto:
99-
:end-at: peer: replicator@
99+
:end-at: login: replicator
100100
:dedent:
101101

102102
.. _replication-master_replica_configuring_result:
@@ -108,7 +108,7 @@ The resulting replica set configuration should look as follows:
108108

109109
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
110110
:language: yaml
111-
:end-at: listen: 127.0.0.1:3302
111+
:end-at: 127.0.0.1:3302
112112
:dedent:
113113

114114

@@ -267,7 +267,7 @@ Adding an instance to the configuration
267267
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
268268
:language: yaml
269269
:start-at: groups:
270-
:end-at: listen: 127.0.0.1:3303
270+
:end-at: 127.0.0.1:3303
271271
:dedent:
272272

273273

@@ -584,7 +584,7 @@ Removing an instance from the configuration
584584
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
585585
:language: yaml
586586
:start-at: instances
587-
:end-at: listen: 127.0.0.1:3302
587+
:end-at: 127.0.0.1:3302
588588
:dedent:
589589

590590
3. Reload configurations on ``instance001`` and ``instance002``:

doc/reference/configuration/configuration_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ replicasets
810810
.. literalinclude:: /code_snippets/snippets/replication/instances.enabled/manual_leader/config.yaml
811811
:language: yaml
812812
:start-at: replication:
813-
:end-at: listen: 127.0.0.1:3303
813+
:end-at: 127.0.0.1:3303
814814
:dedent:
815815

816816

0 commit comments

Comments
 (0)