This repo contains all the scripts to run YCSB benchmarks on cockroachDB cluster.
common.sh,run-benchmark.shandmaster.share the scripts responsible to setting up machines and running benchamarks.ec2.pyis a helper script to start/stop ec2 instances.lhfallback-prob.gois a helper script to generatexfor lease-holder reads ratio.plot.pyandextract-results.pyare data extraction and plot generation scripts.
These are set by common.sh when using the scripts.
COCKROACH_MAX_TXN_RETRIESint [0, INT_MAX)- Workaround the zipfian bug to abort txns after max retries.
COCKROACH_READ_TYPEint {0, 1, 2, 3}0: Default lease-holder reads1: Local reads2: Quorum reads3: Strongly consistent quorum reads
COCKROACH_LHFALLBACK_PROBfloat [0.0, 1.0]- Ratio of read requests which should use lease-holder reads while using quorum reads.
- Install
nmon - Copy over
cockroachbinary
- Install
python,javaandnmon - Copy over contents from
ycsb-client-files
- Copy over
common.sh,master.shandrun-benchmark.sh - (Optional) Copy over
ec2.pyandlhfallback-prob.go
- Update vars in
common.sh - Execute
master.sh