Install the Varada Control Center

The second step in Deploying Varada Using the Varada Control Center is to install the Varada Control Center using a basic Amazon Linux 2 AMI image and a docker image. The Varada Control Center must be installed on a machine with local NVMe-based SSDs in order to process the data required to visualize your cluster activity.

📘

Ensure you have created the required policies and roles before beginning the installation.

  1. In the AWS Console, go to the EC2 Dashboard and select Launch Instance.

  2. On the Step 1: Choose an Amazon Machine Image (AMI) page, choose the Amazon Linux 2 AMI with the 64-bit (x86) option, then click Select.

  1. On the Step 2: Choose an Instance Type page, choose an instance type from the r5d or the i3 family. We recommend you get started with the r5d.4xlrage instance type.

  2. Click Next: Configure Instance Details.

  3. On the Step 3: Configure Instance Details page, complete the required details according to your environment configuration, and select the IAM Role you created for installing the Varada Control Center in Create Policies and Roles for Varada.

📘

Select 1 in the Number of Instances field as the Varada Control Center can be only deployed on a single machine.

  1. Click Next: Add storage.

  2. On the Step 4: Add Storage page, in the row for the Root volume, in the Size (GiB) column, define the size as at least 64 GiB.

  1. Optionally, click Next: Add Tags to add tags to the Varada Control Center machine.

  2. Click Next: Configure Security Group.

  3. On the Step 6: Configure Security Group page, create a rule for the associated Security Group with the type Custom TCP Port, and configure it so that the following ports are open to the IP addresses that will be connecting to the Varada Control Center:

    • 22 for SSH
    • 8888 for the Varada Control Center user interface

👍

You can open the ports for a single IP address or for a range of IP addresses.

  1. Click Review and Launch.

  2. On the Step 7: Review Instance Launch page, check the details of your instance, then click Launch.

  3. In the Select an existing key pair or create a new key pair dialog box, select a pair of SSH keys to ensure a secure connection to the instance.

  4. Click Launch Instances to spin up the machine.

  5. Connect to the machine with SSH.

  6. Set up the environment with both docker and docker-compose by running:

# install docker
sudo amazon-linux-extras install docker -y
sudo service docker start
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
# install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
  1. Run the following commands to start the Varada Control Center:
curl https://raw.githubusercontent.com/varadaio/varada-control-center/main/docker-compose.yml > docker-compose.yml
sudo docker-compose up -d
  1. To access the Varada Control Center, use a browser to go to http://<VCC-HOST>:8888.

  2. Continue with Spin Up a Varada Cluster.