|
| 1 | +# DEMO UI: ScyllaDB in different cloud environments |
| 2 | + |
| 3 | +<p><iframe width="560" height="315" src="https://www.youtube.com/embed/-nPO9KeNydM?si=wkCRK5ZJ0cfz9h4u" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p> |
| 4 | + |
| 5 | +Currently supported DEMOs: |
| 6 | +* ScyllaDB Cloud 1 million operations/second (AWS and ScyllaDB Cloud account needed) |
| 7 | +* ScyllaDB Enterprise 1 million operations/second (AWS account needed) |
| 8 | +* Scaling from 3 to 6 nodes (AWS account needed) |
| 9 | + |
| 10 | + |
| 11 | +## Prerequisites |
| 12 | +* [AWS CLI](https://aws.amazon.com/cli/) |
| 13 | +* [Docker](https://docker.com) |
| 14 | +* [ScyllaDB Cloud API key](https://cloud.scylladb.com/) |
| 15 | + |
| 16 | +## Usage |
| 17 | +1. Clone the repository |
| 18 | + ``` |
| 19 | + git clone https://github.com/scylladb/1m-ops-demo.git |
| 20 | + cd 1m-ops-demo/ |
| 21 | + ``` |
| 22 | +1. Make sure AWS CLI is configured properly, and know the location of the credentials file (e.g. `~/.aws/credentials`) |
| 23 | +1. Edit `config.py` |
| 24 | + ```json |
| 25 | + { |
| 26 | + "aws_creds_file": "/home/user/.aws/credentials", |
| 27 | + "region": "us-east-1", |
| 28 | + "scylla_cloud_token": "API-TOKEN", |
| 29 | + "running_in_docker": true |
| 30 | + } |
| 31 | + ``` |
| 32 | + * `aws_creds_file`: the location (absolute path) of your AWS credentials file |
| 33 | + * `region`: AWS region you want to use for the demo |
| 34 | + * `scylla_cloud_token`: You can generate an API token in ScyllaDB Cloud |
| 35 | + * `running_in_docker`: Normally this should be `true` |
| 36 | +1. Run the web app (by default, it uses port 5000) |
| 37 | + ```bash |
| 38 | + ./build_and_run.sh |
| 39 | + ``` |
| 40 | + This will spin up a Docker container and run the web app on the `5000` port. You can stop the container with `docker stop scylla-demo` |
| 41 | +1. Open DEMO UI application |
| 42 | + |
| 43 | + Go to http://0.0.0.0:5000 |
| 44 | +1. Select a demo you want to try (this will run `terraform init` under the hood) |
| 45 | +  |
| 46 | +1. (Optional) Configure cluster size and workload settings on the left side |
| 47 | +  |
| 48 | +1. Hit `APPLY` (this runs `terraform apply`) |
| 49 | +1. Keep an eye on the console output to see when Terraform finishes |
| 50 | +1. Click on the different dashboard tabs to monitor the cluster. |
| 51 | +1. If you are done, don't forget to run `DESTROY` to remove infrastructure elements and avoid unnecessary costs. |
0 commit comments