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/platform/replication/supervised_failover.rst
+65-18Lines changed: 65 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -106,49 +106,96 @@ Configuring a cluster
106
106
107
107
To configure a cluster to work with an external failover coordinator, follow the steps below:
108
108
109
-
1. (Optional) If you need to run :ref:`several failover coordinators <supervised_failover_overview_fault_tolerance>` to increase fault tolerance, set up an etcd-based configuration storage, as described in :ref:`configuration_etcd`.
109
+
#. (Optional) If you need to run :ref:`several failover coordinators <supervised_failover_overview_fault_tolerance>` to increase fault tolerance, set up an etcd-based configuration storage, as described in :ref:`configuration_etcd`.
110
110
111
-
2. Set the :ref:`replication.failover <configuration_reference_replication_failover>` option to ``supervised``:
111
+
#. Set the :ref:`replication.failover <configuration_reference_replication_failover>` option to ``supervised``:
3. Grant a user used for replication :ref:`permissions <configuration_credentials_managing_users_roles_granting_privileges>` to execute the ``failover.execute`` function:
119
+
#. Grant a user used for replication :ref:`permissions <configuration_credentials_managing_users_roles_granting_privileges>` to execute the ``failover.execute`` function:
You can find the full example on GitHub: `supervised_failover <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/replication/instances.enabled/supervised_failover>`_.
151
141
142
+
.. _supervised_failover_configuration_with_role:
143
+
144
+
Tarantool 3.0 and 3.1 configuration
145
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
146
+
147
+
Before version 3.2, Tarantool used another mechanism to grant execute access to Lua
148
+
functions. In Tarantool 3.0 and 3.1, the ``credentials`` configuration section
149
+
should look as follows:
150
+
151
+
.. code-block:: yaml
152
+
153
+
# Tarantool 3.0 and 3.1
154
+
credentials:
155
+
users:
156
+
replicator:
157
+
password: 'topsecret'
158
+
roles: [ replication ]
159
+
privileges:
160
+
- permissions: [ execute ]
161
+
functions: [ 'failover.execute' ]
162
+
163
+
Additionally, you should create the ``failover.execute`` function in the application code.
164
+
For example, you can create a :ref:`custom role <application_roles>` for this purpose:
0 commit comments