|
| 1 | +.. _tcm_connect_clusters: |
| 2 | + |
| 3 | +Сonnecting clusters |
| 4 | +=================== |
| 5 | + |
| 6 | +.. include:: index.rst |
| 7 | + :start-after: ee_note_tcm_start |
| 8 | + :end-before: ee_note_tcm_end |
| 9 | + |
| 10 | +|tcm_full_name| works with clusters that: |
| 11 | + |
| 12 | +* run on Tarantool EE 3.0 or later |
| 13 | +* use :ref:`centralized configuration <configuration>` stored in etcd or another Tarantool cluster. |
| 14 | + |
| 15 | +A single |tcm| installation can have multiple connected clusters. A connection to |
| 16 | +|tcm| doesn't affect the cluster's functioning. You can connect clusters to |tcm| |
| 17 | +and disconnect them on the fly. |
| 18 | + |
| 19 | +There are two ways to add a cluster to |tcm|: |
| 20 | + |
| 21 | +- Connect an existing cluster. |
| 22 | +- Add a new cluster and :ref:`write its configuration <tcm_cluster_config>` from scratch in the |tcm| web UI. |
| 23 | + |
| 24 | +In both cases, you need to deploy Tarantool and start the cluster instances using |
| 25 | +the :ref:`tt-cli` or another suitable way. |
| 26 | + |
| 27 | +.. _tcm_connect_clusters_parameters: |
| 28 | + |
| 29 | +Connection parameters |
| 30 | +--------------------- |
| 31 | + |
| 32 | +When connecting a cluster to |tcm|, you need to provide two sets of connection parameters: |
| 33 | +for the cluster instances and for the centralized configuration storage. |
| 34 | + |
| 35 | +Configuration storage connection |
| 36 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 37 | + |
| 38 | +The cluster configuration can be stored in either an :ref:`etcd <configuration_etcd>` |
| 39 | +cluster or a separate Tarantool-based storage. In both cases, the following connection |
| 40 | +parameters are required: |
| 41 | + |
| 42 | +* A key prefix used to identify the cluster in the configuration storage. |
| 43 | + A prefix must be unique for each cluster in storage. |
| 44 | +* URIs of all instances of the configuration storage. |
| 45 | +* The credentials for accessing the configuration storage: an `etcd user <https://etcd.io/docs/v3.5/op-guide/authentication/rbac/>`__ |
| 46 | + or a :ref:`Tarantool user <authentication>` and . |
| 47 | + |
| 48 | +Additionally, if SSL or TLS encryption is enabled for the configuration storage, |
| 49 | +provide the corresponding encryption configuration: keys, certificates, and other |
| 50 | +parameters. For the complete list of parameters, consult the `etcd documentation <https://etcd.io/docs/v3.5/op-guide/configuration/#security>`__ |
| 51 | +or Tarantool :ref:`enterprise-iproto-encryption`. |
| 52 | + |
| 53 | +Cluster connection |
| 54 | +~~~~~~~~~~~~~~~~~~ |
| 55 | + |
| 56 | +For interaction with the cluster instances, |tcm| needs the following access parameters: |
| 57 | + |
| 58 | +* A :ref:`Tarantool user <authentication>` that exists in the cluster and their password. |
| 59 | + |tcm| connects to the cluster on behalf of this user. |
| 60 | +* An :ref:`SSL configuration <enterprise-iproto-encryption>` if the traffic encryption |
| 61 | + is enabled on the cluster. |
| 62 | + |
| 63 | +Managing connected clusters |
| 64 | +--------------------------- |
| 65 | + |
| 66 | +Administrators can add new clusters, edit, and remove existing ones from |tcm|. |
| 67 | + |
| 68 | +Connected clusters are listed on the **Clusters** page. |
| 69 | + |
| 70 | +.. _tcm_connect_clusters_connect_preconf: |
| 71 | + |
| 72 | +Connecting a pre-configured cluster |
| 73 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 74 | + |
| 75 | +If you already have a cluster and want connect it to |tcm|, |
| 76 | +follow these steps: |
| 77 | + |
| 78 | +#. Go to **Clusters** and click **Add**. |
| 79 | +#. Fill in the general cluster information: |
| 80 | + |
| 81 | + * Specify an arbitrary name. |
| 82 | + * Optionally, provide a description and select a color to mark this cluster in |tcm|. |
| 83 | + * Optionally, enter the URLs of additional services for the cluster. For example, |
| 84 | + a Grafana dashboard that monitors the cluster metrics, ot a syslog server |
| 85 | + for viewing the cluster logs. |tcm| provides quick access to these URLs on |
| 86 | + the cluster **Stateboard** page. |
| 87 | + |
| 88 | +3. Provide the details of the cluster configuration storage: |
| 89 | + |
| 90 | + * Storage type: **etcd** or **tarantool**. |
| 91 | + * The **Prefix** specified in the cluster configuration. |
| 92 | + * The URIs of the configuration storage instances. |
| 93 | + * The credentials for accessing the configuration storage. |
| 94 | + * The SSL/TLS parameters if the connection encryption is enabled on the storage. |
| 95 | + |
| 96 | +4. Provide the credentials for accessing the cluster: a Tarantool user's name, their password, |
| 97 | + and SSL parameters in case :ref:`traffic encryption <enterprise-iproto-encryption>` |
| 98 | + is enabled on the cluster. |
| 99 | + |
| 100 | +.. _tcm_connect_clusters_connect_new: |
| 101 | + |
| 102 | +Adding a new cluster |
| 103 | +~~~~~~~~~~~~~~~~~~~~ |
| 104 | + |
| 105 | +If you don't have a cluster yet, you can add one in |tcm| and write its configuration |
| 106 | +from scratch using the :ref:`built-in configuration editor <tcm_configuring_clusters>`. |
| 107 | + |
| 108 | +.. important:: |
| 109 | + |
| 110 | + When adding a new cluster, you need to have a storage for its configuration up |
| 111 | + and running so that |tcm| can connect to it. Cluster instances can be deployed later. |
| 112 | + |
| 113 | +To add a new cluster: |
| 114 | + |
| 115 | +#. Go to **Clusters** and click **Add**. |
| 116 | +#. Fill in the general cluster information: |
| 117 | + |
| 118 | + * Specify an arbitrary name. |
| 119 | + * Optionally, provide a description and select a color to mark this cluster in |tcm|. |
| 120 | + * Optionally, enter the URLs of additional services for the cluster. For example, |
| 121 | + a Grafana dashboard that monitors the cluster metrics, ot a syslog server |
| 122 | + for viewing the cluster logs. |tcm| provides quick access to these URLs on |
| 123 | + the cluster **Stateboard** page. |
| 124 | + |
| 125 | +#. Select the type of the cluster configuration storage: **etcd** or **tarantool**. |
| 126 | +#. Define a unique **Prefix** for identifying this cluster in the configuration storage. |
| 127 | +#. Provide the connection details for the cluster configuration storage: |
| 128 | + |
| 129 | + * The URIs of configuration storage instances. |
| 130 | + * The credentials for accessing the configuration storage. |
| 131 | + * The SSL/TLS parameters if the connection encryption is enabled on the storage. |
| 132 | + |
| 133 | +#. Provide the cluster credentials: a username, a password, and SSL parameters in |
| 134 | + case :ref:`traffic encryption <enterprise-iproto-encryption>` is enabled on |
| 135 | + the cluster. |
| 136 | + |
| 137 | +Once you add the cluster: |
| 138 | + |
| 139 | +* Set up the cluster configuration using the |tcm| :ref:`configuration editor <tcm_configuring_clusters>`. |
| 140 | +* Deploy Tarantool on the cluster nodes using the :ref:`tt-cli` or other suitable tools. |
| 141 | +* Start the cluster using the :ref:`tt-cli` or other suitable tools. |
| 142 | + |
| 143 | +.. _tcm_connect_clusters_edit: |
| 144 | + |
| 145 | +Editing a connected cluster |
| 146 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 147 | + |
| 148 | +To edit a connected cluster, go to **Clusters** and click **Edit** in the **Actions** |
| 149 | +menu of the corresponding table row. |
| 150 | + |
| 151 | +.. _tcm_connect_clusters_disconnect: |
| 152 | + |
| 153 | +Disconnecting a cluster |
| 154 | +~~~~~~~~~~~~~~~~~~~~~~~ |
| 155 | + |
| 156 | +To disconnect a cluster from |tcm|, go to **Clusters** and click **Disconnect** |
| 157 | +in the **Actions** menu of the corresponding table row. |
| 158 | + |
| 159 | +.. note:: |
| 160 | + |
| 161 | + Disconnecting a cluster does not affect its functioning. The only |
| 162 | + thing that is changed is that it's no longer shown in |tcm|. |
| 163 | + You can connect this cluster again at any time. |
0 commit comments