Skip to content

Commit 7f798cb

Browse files
committed
Add scripts to automate demo setup
1 parent 08995af commit 7f798cb

4 files changed

Lines changed: 39 additions & 1 deletion

File tree

experiments/15-e2e-scenarios-v2/demo/full_workload_def.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trap "inner_cancel_experiment" TERM
2727
# Start with Aurora 2x db.t4g.medium, Redshift off, Athena unused.
2828

2929
# Start with 4 analytical clients.
30-
start_repeating_olap_runner 4 15 5 $initial_queries "ra_4"
30+
start_repeating_olap_runner 4 25 5 $initial_queries "ra_4"
3131
rana_pid=$runner_pid
3232
sleep 2
3333

experiments/19-demo2/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Operating the BRAD Demo
2+
3+
1. Start a new tmux session; you need 3 tmux panes
4+
2. Activate the virtualenv that has BRAD and its dependencies installed
5+
3. Run `./start_brad.sh` to start BRAD. The web interface should be accessible on port 7583
6+
4. In another tmux pane, run `./start_workload.sh` to start the workload
7+
5. BRAD relies on system metrics (retrieved from AWS) to do its planning. You
8+
need to wait at least 3 minutes for the workload metrics to make it to AWS
9+
before you can start the planner.
10+
6. To shut down the demo, shut down the workload runner first (Ctrl-C). Wait
11+
until all runners have exited. Then shut down BRAD (Ctrl-C on the other pane).
12+
13+
## Important files
14+
15+
- `config/system_config_demo.yml`:
16+
- BRAD configs for the demo (checked in)
17+
- `config/physical_config_100gb_demo.yml`:
18+
- Physical configuration values; ensure the cluster IDs refer to actual AWS resources

experiments/19-demo2/start_brad.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /bin/bash
2+
3+
script_loc=$(cd $(dirname $0) && pwd -P)
4+
cd $script_loc
5+
6+
pushd ../.. > /dev/null
7+
8+
brad daemon \
9+
--system-config config/system_config_demo.yml \
10+
--physical-config config/physical_config_100gb_demo.yml \
11+
--schema-name imdb_extended_100g \
12+
--ui
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /bin/bash
2+
3+
script_loc=$(cd $(dirname $0) && pwd -P)
4+
cd $script_loc
5+
6+
pushd ../15-e2e-scenarios-v2/demo > /dev/null
7+
8+
./02-start_workload.sh

0 commit comments

Comments
 (0)