Skip to content

Commit

Permalink
Update specialized workload experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Nov 28, 2023
1 parent a0f6427 commit 519e8bf
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions experiments/15-e2e-scenarios-v2/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,36 @@ function start_other_repeating_runner() {
runner_pid=$!
}

function start_sequence_runner() {
local clients=$1
local gap_s=$2
local gap_std_s=$3
local results_name=$4
local client_offset=$5

local args=(
--num-clients $clients
--num-front-ends $num_front_ends
--query-sequence-file $query_sequence_file
--avg-gap-s $gap_s
--avg-gap-std-s $gap_std_s
)

if [[ ! -z $client_offset ]]; then
args+=(--client-offset $client_offset)
fi

>&2 echo "[Sequence runner] Running with $clients..."
results_dir=$COND_OUT/$results_name
mkdir -p $results_dir

log_workload_point $results_name
COND_OUT=$results_dir python3.11 ../../../workloads/IMDB_extended/run_query_sequence.py "${args[@]}" &

# This is a special return value variable that we use.
runner_pid=$!
}

function extract_named_arguments() {
# Evaluates any environment variables in this script's arguments. This script
# should only be run on trusted input.
Expand Down Expand Up @@ -279,5 +309,9 @@ function extract_named_arguments() {
if [[ $dataset_type =~ --dataset-type=.+ ]]; then
dataset_type=${phys_arg:15}
fi

if [[ $dataset_type =~ --query-sequence-file=.+ ]]; then
query_sequence_file=${phys_arg:22}
fi
done
}
4 changes: 2 additions & 2 deletions experiments/15-e2e-scenarios-v2/specialized/COND
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ run_experiment(
"planner-config-file": "config/planner.yml",
"schema-name": "imdb_specialized_100g",
"ra-query-bank-file": IMDB_100GB_REGULAR_QUERY_BANK,
"other-query-bank-file": "vector.sql",
"query-sequence-file": "vector.sql",
"num-front-ends": 16,
"dataset-type": "100gb",
},
Expand All @@ -25,7 +25,7 @@ run_command(
"planner-config-file": "config/planner.yml",
"schema-name": "imdb_specialized_100g",
"ra-query-bank-file": IMDB_100GB_REGULAR_QUERY_BANK,
"other-query-bank-file": "vector.sql",
"query-sequence-file": "vector.sql",
"num-front-ends": 16,
"dataset-type": "100gb",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ log_workload_point "clients_starting"
start_repeating_olap_runner 8 5 5 $query_indices "ra_8"
rana_pid=$runner_pid

start_other_repeating_runner 8 5 5 "ra_vector" 8
start_sequence_runner 8 5 5 "ra_vector" 8
other_pid=$runner_pid

start_txn_runner 4 # Implicit: --dataset-type
Expand Down

0 comments on commit 519e8bf

Please sign in to comment.