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
Copy file name to clipboardExpand all lines: doc/reference/configuration/configuration_reference.rst
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3617,6 +3617,7 @@ The ``replication`` section defines configuration parameters related to :ref:`re
3617
3617
The expulsion process follows the standard procedure, involving the removal of the instance from the ``_cluster`` system space.
3618
3618
3619
3619
The ``autoexpel`` logic is activated during specific events:
3620
+
3620
3621
- **Startup**. When the cluster starts, ``autoexpel`` checks and removes instances not matching the updated configuration.
3621
3622
- **Reconfiguration**. When the YAML configuration is reloaded, ``autoexpel`` compares the current state to the updated configuration and performs necessary expulsions.
3622
3623
- ``box.status`` **Watcher event**. Changes detected by the ``box.status watcher`` also trigger the ``autoexpel`` mechanism.
@@ -3633,15 +3634,17 @@ The ``replication`` section defines configuration parameters related to :ref:`re
3633
3634
3634
3635
Configuration fields
3635
3636
3636
-
- **`enabled`** *(boolean, default: `false`)*: enables or disables the ``autoexpel`` logic.
3637
+
- ``enabled`` *(boolean, default: ``false``)*: enables or disables the ``autoexpel`` logic.
3637
3638
3638
-
- **`by`** *(string, default: `nil`)*: specifies the ``autoexpel`` criterion. Currently, only `prefix` is supported and must be explicitly set.
3639
+
- ``by`` *(string, default: ``nil``)*: specifies the ``autoexpel`` criterion. Currently, only ``prefix`` is supported and must be explicitly set.
3639
3640
3640
-
- **`prefix`** *(string, default: `nil`)*: defines the pattern for instance names that are considered part of the cluster.
3641
+
- ``prefix`` *(string, default: ``nil``)*: defines the pattern for instance names that are considered part of the cluster.
3641
3642
3642
3643
**Example Patterns**:
3644
+
3643
3645
- If instances are prefixed with the replicaset name, set:
3644
3646
``prefix: '{{ replicaset_name }}'``
3647
+
3645
3648
- For instances matching a specific pattern (e.g., `i-\d\d\d`), set:
3646
3649
``prefix: 'i-'``
3647
3650
@@ -3679,7 +3682,6 @@ The ``replication`` section defines configuration parameters related to :ref:`re
3679
3682
3680
3683
3681
3684
This configuration:
3682
-
3683
3685
- Sets up authentication with a guest user assigned the super role.
3684
3686
- Enables the ``autoexpel`` option to automatically expel instances not present in the YAML file.
3685
3687
- Defines instance names based on a prefix pattern: ``{{ replicaset_name }}``.
0 commit comments