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
-
Open the DEMO folder that you want to run (e.g. for ScyllaDB Cloud 1M ops/sec demo):
cd scylladb-cloud
-
Edit the
variables.tf
file, for example:# ScyllaDB Cloud API token variable "scylla_cloud_token" { description = "ScyllaDB Cloud API token" type = string default = "YOUR-API-TOKEN" } # ScyllaDB Cloud region variable "scylla_cloud_region" { description = "ScyllaDB Cloud region of the cluster" type = string default = "us-east-1" } # SSH private key for EC2 instance access variable "ssh_private_key" { description = "SSH private key location for EC2 instance access" type = string default = "key.pem" } variable "aws_key_pair" { description = "Key pair name in AWS" type = string default = "my-key-pair" } # AWS credentials file variable "aws_creds" { description = "AWS credentials location" type = string default = "/home/user/.aws/credentials" } # AWS Profile to Use variable "aws_profile" { description = "AWS Profile to Use" type = string default = "DeveloperAccessRole" }
-
Run Terraform
Initialize Terraform project:
terraform init
Review infrastrcuture that Terraform is planning to build out:
terraform plan
Finally, start Terraform:
terraform apply
Wait for Terraform to finish setting up
-
Install DEMO UI application dependencies
Make sure your are in the root folder.
Install backend dependencies (virtual environment is recommended):
virtualenv env && source env/bin/activate && pip install -r requirements.txt
Install frontend dependencies (use
npm
oryarn
):cd frontend npm install
-
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
-
Click through the scenarios one by one.