Skip to content

Commit

Permalink
Add A+R baseline to the scale down scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed May 6, 2024
1 parent 531599b commit 3ea86e3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
9 changes: 9 additions & 0 deletions experiments/15-e2e-scenarios-v2/scale_down/COND
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,12 @@ run_experiment(
**COMMON_100G_CONFIGS,
},
)

run_experiment(
name="ar_100g",
run="./run_ar_baseline.sh",
options={
# System config file not needed.
**COMMON_100G_CONFIGS,
},
)
40 changes: 40 additions & 0 deletions experiments/15-e2e-scenarios-v2/scale_down/run_ar_baseline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#! /bin/bash

script_loc=$(cd $(dirname $0) && pwd -P)
cd $script_loc
source ../common.sh

# Arguments:
# --system-config-file
# --physical-config-file
# --query-indexes
extract_named_arguments $@

schema_name="imdb_extended_100g"

log_workload_point "clients_starting"
start_redshift_serverless_olap_runner 8 15 5 $ra_query_indexes "ra_8" $schema_name
rana_pid=$runner_pid

start_aurora_serverless_txn_runner_serial 4 $schema_name # Implicit: --dataset-type
txn_pid=$runner_pid

log_workload_point "clients_started"

function inner_cancel_experiment() {
cancel_experiment $rana_pid $txn_pid
}

trap "inner_cancel_experiment" INT
trap "inner_cancel_experiment" TERM

# The workload should run for 90 minutes.
# We will run for ~100 mins to add some buffer.
sleep $(( 100 * 60 ))

# Shut down everything now.
log_workload_point "experiment_workload_done"
>&2 echo "Experiment done. Shutting down runners..."
graceful_shutdown $rana_pid $txn_pid
log_workload_point "shutdown_complete"

0 comments on commit 3ea86e3

Please sign in to comment.