Remove a Cluster

This article explains how to remove a worker cluster in a native cloud deployment on AWS.

When you remove a cluster, all associated resources for the cluster are removed from the deployment. The data in the data store (S3 bucket) is not deleted.

The main cluster cannot be removed.

Prerequisites

The database access node must be running.

Set the config path

When you make changes to an existing deployment you must use the same configuration that was used when creating the deployment. If the configuration file that was used is not named config and/or is not located in the current working directory (on the host where you run c4), you must prepend the c4 commands with the path to the configuration file using CCC_CONFIG=<path-to-config>.

Example:
Copy
CCC_CONFIG=./path_to_config/my_config c4 <command>

In the following examples, the default configuration file is used.

Procedure

This procedure uses the c4 and confd_client command-line tools in a Linux terminal. For more information about these tools, see Exasol Deployment Tool (c4)Exasol Deployment Tool (c4) and ConfD.

Step 1: Connect to COS

Connect to the cluster operating system (COS) using c4 connect -i PLAY_ID -s cos.

Example:
Copy
./c4 connect -i c3275f84 -s cos

For more information about how to use c4 connect, see How to use c4.

Step 2: Remove a worker cluster

To remove a worker cluster, use the ConfD job infra_worker_db_remove with the following parameter:

Parameter name Data type Description
worker_db_name string The name of the worker cluster you want to remove.
Example:
Copy
confd_client infra_worker_db_remove worker_db_name: MY_WORKER_CLUSTER

Step 3: Disconnect from COS

To disconnect from COS, use Ctrl-D.

Verification

To verify that the cluster is removed from the deployment, use c4 ps.