Skip to content

Commit 7b2cdf0

Browse files
committed
full example and logic deleted
1 parent 86cf721 commit 7b2cdf0

File tree

1 file changed

+0
-112
lines changed

1 file changed

+0
-112
lines changed

doc/reference/configuration/configuration_reference.rst

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -3618,13 +3618,6 @@ The ``replication`` section defines configuration parameters related to :ref:`re
36183618

36193619
The expulsion process follows the standard procedure, involving the removal of the instance from the ``_cluster`` system space.
36203620

3621-
The ``autoexpel`` logic is activated during specific events:
3622-
3623-
- **Startup**. When the cluster starts, ``autoexpel`` checks and removes instances not matching the updated configuration.
3624-
- **Reconfiguration**. When the YAML configuration is reloaded, ``autoexpel`` compares the current state to the updated configuration and performs necessary expulsions.
3625-
- ``box.status`` **watcher event**. Changes detected by the ``box.status`` watcher also trigger the ``autoexpel`` mechanism.
3626-
3627-
36283621
``autoexpel`` does not take any actions on newly joined instances unless one of the triggering events occurs.
36293622
This means that an instance meeting the ``autoexpel`` criterion can still join the cluster, but it may be removed
36303623
later during reconfiguration or on subsequent triggering events.
@@ -3780,111 +3773,6 @@ replication.autoexpel.prefix
37803773
| Environment variable: TT_REPLICATION_AUTOEXPEL_PREFIX
37813774
37823775

3783-
3784-
autoexpel full example
3785-
~~~~~~~~~~~~~
3786-
3787-
1. Create a ``config.yaml`` file with the following content:
3788-
3789-
.. code-block:: yaml
3790-
3791-
credentials:
3792-
users:
3793-
guest:
3794-
roles: [super]
3795-
3796-
replication:
3797-
failover: manual
3798-
autoexpel:
3799-
enabled: true
3800-
by: prefix
3801-
prefix: '{{ replicaset_name }}'
3802-
3803-
iproto:
3804-
listen:
3805-
- uri: 'unix/:./var/run/{{ instance_name }}.iproto'
3806-
3807-
groups:
3808-
g-001:
3809-
replicasets:
3810-
r-001:
3811-
leader: r-001-i-001
3812-
instances:
3813-
r-001-i-001: {}
3814-
r-001-i-002: {}
3815-
r-001-i-003: {}
3816-
3817-
3818-
This configuration:
3819-
- Sets up authentication with a guest user assigned the super role.
3820-
- Enables the ``autoexpel`` option to automatically expel instances not present in the YAML file.
3821-
- Defines instance names based on a prefix pattern: ``{{ replicaset_name }}``.
3822-
- Lists three instances: ``r-001-i-001``, ``r-001-i-002``, and ``r-001-i-003``.
3823-
3824-
3825-
2. Open terminal window and start three instances using the following commands:
3826-
3827-
.. code-block:: lua
3828-
3829-
tarantool --name r-001-i-001 --config config.yaml -i
3830-
3831-
3832-
.. code-block:: lua
3833-
3834-
tarantool --name r-001-i-002 --config config.yaml -i
3835-
3836-
3837-
.. code-block:: lua
3838-
3839-
tarantool --name r-001-i-003 --config config.yaml -i
3840-
3841-
3. Edit ``config.yaml`` and remove the following entry for ``r-001-i-003``:
3842-
3843-
.. code-block:: lua
3844-
r-001-i-003: {}
3845-
3846-
3847-
The updated ``config.yaml`` should look like this:
3848-
3849-
.. code-block:: yaml
3850-
3851-
groups:
3852-
g-001:
3853-
replicasets:
3854-
r-001:
3855-
leader: r-001-i-001
3856-
instances:
3857-
r-001-i-001: {}
3858-
r-001-i-002: {}
3859-
3860-
Save the file.
3861-
3862-
4. For the leader instance (``r-001-i-001``), check the ``_cluster`` space:
3863-
3864-
.. hint::
3865-
3866-
The ``_cluster`` system space in Tarantool stores metadata about all instances currently recognized as part of the cluster.
3867-
It shows which instances are registered and active.
3868-
3869-
You should see ``r-001-i-003`` still listed in the ``_cluster`` system space.
3870-
3871-
5. Reload the configuration:
3872-
3873-
.. code-block:: lua
3874-
3875-
config = require('config')
3876-
config:reload()
3877-
3878-
6. Verify the changes:
3879-
3880-
.. code-block:: lua
3881-
3882-
box.space._cluster:fselect()
3883-
3884-
After the reload, ``r-001-i-003`` should no longer appear in the ``_cluster`` system space.
3885-
3886-
3887-
38883776
.. _configuration_reference_replication_bootstrap_strategy:
38893777

38903778
.. confval:: replication.bootstrap_strategy

0 commit comments

Comments
 (0)