This repository contains Terraform and Ansible based projects to help you set up DEMOs and POCs with ScyllaDB in a cloud environment.
Currently supported DEMOs:
- ScyllaDB Cloud 1 million operations/second (AWS and ScyllaDB Cloud account needed)
- ScyllaDB Enterprise 1 million operations/second (AWS account needed)
- Scaling from 3 to 6 nodes (AWS account needed))
-
Clone the repository
git clone https://github.com/scylladb/1m-ops-demo.git -
Install DEMO UI application dependencies
Make sure you are in the root folder of the project.
Install backend dependencies (virtual environment is recommended):
virtualenv env && source env/bin/activate && pip install -r requirements.txt
Install frontend dependencies (use
npmoryarn):cd frontend npm install -
Edit
config.jsto set Terraform variables:{ "aws_creds_file": "/home/user/.aws/credentials", "aws_creds_profile": "DeveloperAccessRole", "ssh_private_key": "/home/user/key.pem", "aws_key_pair": "key-par", "region": "us-east-1", "scylla_cloud_token": "API-TOKEN" } -
Run DEMO UI application
Start backend
python app.py
Start frontend
cd frontend npm run dev -
Open DEMO UI application
Go to http://localhost:5173
-
Select a demo you want to try (this will run
terraform initunder the hood) -
(Optional) Configure cluster size and workload settings on the left side
-
Hit
APPLY(this runsterraform apply) -
Keep an eye on the console output to see when Terraform finishes
-
Click on the different dashboard tabs to monitor the cluster.
-
If you are done, don't forget to run
DESTROYto remove infrastructure elements and avoid unnecessary costs.