Skip to content

Commit

Permalink
Adjust workload queries, fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Nov 12, 2023
1 parent 4da25b7 commit 133c5f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
23 changes: 18 additions & 5 deletions experiments/15-e2e-scenarios-v2/scale_up/run_workload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source ../common.sh
# (TiDB / Serverless Redshift + Aurora)

initial_queries="99,56,32,92,91,49,30,83,94,38,87,86,76,37,31,46"
heavier_queries="58,61,62,64,69,70,71,72,73,74"
heavier_queries="58,61,62,64,69,73,74,51,57,60"

function step_txns() {
local lo=$1
Expand Down Expand Up @@ -96,14 +96,27 @@ start_repeating_olap_runner 8 15 1 $heavier_queries "ra_8_heavy" 8
heavy_rana_pid=$runner_pid
sleep $((20 * 60)) # 20 mins total; 62 mins cumulative

# 20 minutes.
log_workload_point "start_heavy_rana_20"
log_workload_point "stopping_heavy_rana_8"
kill -INT $heavy_rana_pid
kill -TERM $heavy_rana_pid
sleep 5
kill -KILL $heavy_rana_pid # To ensure we do not get stuck.
wait $heavy_rana_pid

log_workload_point "start_heavy_rana_10"
start_repeating_olap_runner 10 5 1 $heavier_queries "ra_10_heavy" 8
heavy_rana_pid=$runner_pid
sleep $((10 * 60)) # 10 mins total; 72 mins cumulative

log_workload_point "stopping_heavy_rana_10"
kill -INT $heavy_rana_pid
sleep 5
kill -KILL $heavy_rana_pid # To ensure we do not get stuck.
wait $heavy_rana_pid

log_workload_point "start_heavy_rana_20"
start_repeating_olap_runner 20 5 1 $heavier_queries "ra_20_heavy" 8
heavy_rana_pid=$runner_pid
sleep $((40 * 60)) # 40 mins total; 102 mins cumulative
sleep $((30 * 60)) # 30 mins total; 102 mins cumulative

log_workload_point "experiment_workload_done"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source ../common.sh
# (TiDB / Serverless Redshift + Aurora)

initial_queries="99,56,32,92,91,49,30,83,94,38,87,86,76,37,31,46"
heavier_queries="58,61,62,64,69,70,71,72,73,74"
heavier_queries="58,61,62,64,69,73,74,51,57,60"

# Arguments:
# --config-file
Expand Down
2 changes: 1 addition & 1 deletion src/brad/routing/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def engine_for(
# Check if no engine supports query.
if valid_locations == 0:
raise RuntimeError(
"No engine supports query {}".format(", ".join(query.raw_query))
"No engine supports query '{}'".format(query.raw_query)
)

# Check if only one engine supports query.
Expand Down

0 comments on commit 133c5f3

Please sign in to comment.