Skip to content

Commit

Permalink
Add zipfian argument to the calibration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed May 1, 2024
1 parent ebabb2a commit f0b610f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools/calibration/transactions/chbenchmark/COND
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ COND_INSTANCES = {
instance: instance.replace(".", "_").replace("db.", "") for instance in INSTANCES
}

ZIPFIAN_ALPHA = 5.0

combine(
name="all",
deps=[
Expand All @@ -36,6 +38,7 @@ for instance in INSTANCES:
"txn-warehouses": 1740,
"txn-config-file": "aurora.config",
"schema-name": "chbenchmark",
"txn-zipfian-alpha": ZIPFIAN_ALPHA,
"instance": instance,
},
)
Expand Down
7 changes: 6 additions & 1 deletion tools/calibration/transactions/chbenchmark/run_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ function extract_named_arguments() {
if [[ $phys_arg =~ --instance=.+ ]]; then
instance=${phys_arg:11}
fi

if [[ $phys_arg =~ --txn-zipfian-alpha=.+ ]]; then
txn_zipfian_alpha=${phys_arg:20}
fi
done
}

Expand Down Expand Up @@ -74,7 +78,8 @@ RECORD_DETAILED_STATS=1 python3 -m pytpcc.tpcc aurora \
--duration $run_for_s \
--clients $t_clients \
--scalefactor 1 \
--lat-sample-prob 0.25
--lat-sample-prob 0.25 \
--txn-zipfian-alpha $txn_zipfian_alpha
popd

>&2 echo "Waiting 10 seconds before retrieving metrics..."
Expand Down

0 comments on commit f0b610f

Please sign in to comment.