# Prereq
echo source /opt/intel/oneapi/setvars.sh --force >> ~/.bashrc
bash
git config --global user.name "Benton Li"
git config --global user.email "[email protected]"
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.11.0-openjdk-amd64/lib/server:$LD_LIBRARY_PATH
# upload csv & json
make -j
./keygen.sh
git config --global user.name "Benton Li"
git config --global user.email "[email protected]"
# server
# note: set indicus_total_processes to 0 because my poor mac only has 4 cores
store/server --config_path ./store/testing/toy.config \\
--group_idx 0 \\
--num_groups 1 \\
--num_shards 1 \\
--replica_idx 0 \\
--indicus_total_processes 4 \\
--protocol crdb \\
--num_keys 1 \\
--rw_or_retwis false \\
--indicus_key_path ./keys

store/server --config_path ./store/testing/toy.config \\
--group_idx 0 \\
--num_groups 1 \\
--num_shards 1 \\
--replica_idx 1 \\
--indicus_total_processes 4 \\
--protocol crdb \\
--num_keys 1 \\
--rw_or_retwis false \\
--indicus_key_path ./keys

store/server --config_path ./store/testing/toy.config \\
--group_idx 0 \\
--num_groups 1 \\
--num_shards 1 \\
--replica_idx 2 \\
--indicus_total_processes 4 \\
--protocol crdb \\
--num_keys 1 \\
--rw_or_retwis false \\
--indicus_key_path ./keys
# client
store/benchmark/async/benchmark --config_path ./store/testing/toy.config \\
--num_groups 1 \\
--num_shards 1 \\
--protocol_mode crdb \\
--num_keys 1 \\
--benchmark smallbank \\
--num_ops_txn 2 \\
--exp_duration 10 \\
--num_client_threads 1 \\
--client_id 0 \\
--warmup_secs 0 \\
--cooldown_secs 0 \\
--key_selector zipf \\
--zipf_coefficient 0.0 \\
--stats_file "stats-0.json" \\
--indicus_hyper_threading false \\
--indicus_key_path ./keys \\
&> client-0.out &
cockroach sql --insecure --host control.roachy1.crdbdriver-pg0.utah.cloudlab.us:26257