Hardware benchmarks should be performed directly on a pod running on the same instance type that is going to be used for Cassandra nodes in the CQL benchmarks.
The hardware benchmarks must be conducted when K8ssandra is not installed, otherwise pods might fail to be scheduled.
CPU benchmarks use sysbench.
Execute the run-cpu-benchmarks script:
./shared/run-cpu-benchmarks.sh
Results will be stored under ./results/cpu
.
Disk benchmarks use FIO with custom tests tailored for Cassandra; they also target a specific storage class.
Execute the run-disk-benchmarks script and pass the desired storage class as an argument, for example:
./shared/run-disk-benchmarks.sh my-storage-class
Results for the above example will be stored under ./results/disk/my-storage-class
.