In the directory where the config.json file resides, you will find a script named setup_cluster.sh, which performs the automatic deployment of Regatta.
Switch to the deployment_user and run setup_cluster.sh (RDT) to begin the automated deployment:
You will be asked to accept the Regatta End-User License Agreement (EULA), located at: https://regatta.dev/eula/
The prompt will appear as follows:
If you need time to review the EULA or choose not to continue, entering n will abort the script:
You may restart the deployment at any time using the same script.
By entering Y, you confirm that you have read and accepted the EULA and the deployment will continue.
Next, the script will prompt you to provide the path to the SSH key and the username used to connect to the cluster nodes:
SSH key is required by Ansible for connecting to the cluster nodes and perform the deployment.In case of a single-node deployment in which the RDT runs on the same node used for Regatta DB, you can create an SSH key-pair using the following command:
The RDT will then validate SSH connectivity to every node defined in its configuration file. After successful validation, it will ask whether the deployment_user requires a password for sudo operations:
If the answer is yes, you will be prompted to enter the password later:
The password remains only in volatile memory and is never stored.
During execution, the RDT installs the supplied RPM packages. These packages check for the Regatta dependencies listed in the prerequisites section. If dependencies are missing and no internet connection is available to download them, the deployment will stop at this stage.
The RDT will then run the deployment sequence, performing the following tasks:
- Read the
config.json file and parse the list of IP addresses and storage device paths
- Connect to each node using the configured
deployment_user
- Copy and install the Regatta RPMs on each node
- Change ownership of the block storage device(s) to the
regatta user
- Generate the Regatta
cluster.config file and distribute it to all nodes
- Start the Regatta services, which in turn start all Regatta modules
Once the RDT completes its execution, the Regatta cluster will be fully operational and ready to accept connections via the CLI or client drivers.
You can verify that the cluster is running by checking the Regatta services on any node:
Example outuput (each Regatta module runs under its own service, such as regatta-1.0-rdb.service):
Congratulations! Your Regatta cluster is up and running. Now you can connect your application using your preferred client.