-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to the specialized scenario
- Loading branch information
Showing
4 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
experiments/15-e2e-scenarios-v2/specialized/run_vector_workload_debug.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#! /bin/bash | ||
|
||
script_loc=$(cd $(dirname $0) && pwd -P) | ||
cd $script_loc | ||
source ../common.sh | ||
|
||
# Arguments: | ||
# --config-file | ||
# --planner-config-file | ||
# --query-indexes | ||
extract_named_arguments $@ | ||
|
||
# Repeating query indexes: | ||
# 51, 53, 58, 61, 62, 64, 65, 66, 69, 72, 73, 74, 77, 86, 91 | ||
# | ||
# Touch `title`: | ||
# 65, 69, 73 | ||
# | ||
# Heavy repeating query indexes: | ||
# 14, 54, 59, 60, 71, 75 | ||
# | ||
# Touch `title`: | ||
# 14, 54, 59, 75 | ||
|
||
query_indices="62,64,65,66,69,72,73,74,91,59" | ||
|
||
export BRAD_IGNORE_BLUEPRINT=1 | ||
start_brad_debug $config_file $planner_config_file | ||
log_workload_point "brad_start_initiated" | ||
sleep 30 | ||
|
||
log_workload_point "clients_starting" | ||
start_repeating_olap_runner 4 5 5 $query_indices "ra_4" | ||
rana_pid=$runner_pid | ||
|
||
start_sequence_runner 2 8 5 "ra_vector" 4 | ||
other_pid=$runner_pid | ||
|
||
start_txn_runner 4 # Implicit: --dataset-type | ||
txn_pid=$runner_pid | ||
log_workload_point "clients_started" | ||
|
||
function inner_cancel_experiment() { | ||
cancel_experiment $rana_pid $txn_pid $other_pid | ||
} | ||
|
||
trap "inner_cancel_experiment" INT | ||
trap "inner_cancel_experiment" TERM | ||
|
||
sleep $((60 * 60)) # Wait for 1 hour. | ||
log_workload_point "experiment_done" | ||
|
||
# Shut down everything now. | ||
>&2 echo "Experiment done. Shutting down runners..." | ||
graceful_shutdown $rana_pid $txn_pid $other_pid | ||
log_workload_point "shutdown_complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters