Disclaimer: Public clouds are very unstable performance, you may see dramatically different numbers between runs due to noise, jitter, disk wear, scheduling, machine locality, and network topology. If you want to have stable benchmarks, you should adapt this script to a dedicated machine.
First, you'll need to roll an SSH key next into the
ssh-keygen -t ed25519 -f key
Second, you need to initialize Terraform.
Third, you'll need to set up your
Finally, you can run the benchmark:
# Warning: This **will** cost you money hourly until you run `terraform destroy` terraform apply
You'll find results in
results-second folders. By default, first is
2.1.14, second is
After, make sure to run
terraform destroy so you don't get additional charges.
There are various knobs you can tweak in your
terraform.tfvars. For a full list of knobs you can look at the variables in the
pd is not supported yet.
You can scale the number of
tikv_count = 1
You can change the docker images benchmarked:
tikv_image = "you/tikv:latest" pd_image = "you/pd:latest"
You can change the machine sizes as well (find the valid sizes with
doctl compute size list from the
tikv_size = "s-4vcpu-8gb" pd_size = "s-4vcpu-8gb"