-
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.
- Loading branch information
1 parent
9d68ec6
commit 4ca9d6e
Showing
4 changed files
with
104 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
59 changes: 59 additions & 0 deletions
59
experiments/15-e2e-scenarios-v2-baselines/slo_change/run_workload.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,59 @@ | ||
#! /bin/bash | ||
|
||
EXPT_OUT="expt_out" | ||
ANALYTICS_ENGINE="tidb" | ||
TRANSACTION_ENGINE="tidb" | ||
script_loc=$(cd $(dirname $0) && pwd -P) | ||
# total_first_phase_time_s=$(( 10 * 60 )) | ||
total_first_phase_time_s=$(( 30 )) | ||
# total_second_phase_time_s=$(( 60 * 60 )) | ||
total_second_phase_time_s=$(( 60 )) | ||
source $script_loc/../common.sh | ||
|
||
# Arguments: | ||
# --system-config-file | ||
# --physical-config-file | ||
# --query-indexes | ||
extract_named_arguments $@ | ||
|
||
# Just fo testing. | ||
echo "Query indexes" | ||
echo $ra_query_indexes | ||
echo "rana Query Bank" | ||
# Check file and exit if not exists | ||
ls $ra_query_bank_file || exit 1 | ||
echo "Seq Query Bank" | ||
ls $seq_query_bank_file || exit 1 | ||
|
||
|
||
log_workload_point "clients_starting" | ||
# 12 clients, offset 20 (for the transactional clients) | ||
start_repeating_olap_runner 12 5 2 $ra_query_indexes "ra_8" 20 | ||
rana_pid=$runner_pid | ||
|
||
start_txn_runner_serial 20 # 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 | ||
|
||
# Sleep for 10 minutes and then change the SLOs. | ||
sleep $total_first_phase_time_s | ||
|
||
# No SLO Change on Baselines. | ||
log_workload_point "second_phase_no_slo_change" | ||
|
||
# Wait another hour before stopping. | ||
sleep $total_second_phase_time_s | ||
|
||
# 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" |
6 changes: 6 additions & 0 deletions
6
experiments/15-e2e-scenarios-v2-baselines/slo_change/start.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,6 @@ | ||
script_loc=$(cd $(dirname $0) && pwd -P) | ||
export seq_query_bank_file="workloads/IMDB_100GB/adhoc_test/queries.sql" | ||
export ra_query_bank_file="workloads/IMDB_100GB/regular_test/queries.sql" | ||
bash $script_loc/run_workload.sh \ | ||
--ra-query-indexes="99,56,32,92,91,49,30,83,94,38,87,86,76,37,31,46,58,61,62,64,69,73,74,51,57,60" \ | ||
--ra-query-bank-file=$ra_query_bank_file |
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