Performance Testing
FIO-based Performance Testing
Create a pod for fio test
kubectl apply -f https://docs.iomesh.com/assets/iomesh-csi-driver/example/fio.yaml
Wait until fio-pvc bound is finished and fio pod is ready
kubectl get pvc fio-pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE fio-pvc Bound pvc-d7916b34-50cd-49bd-86f9-5287db1265cb 30Gi RWO iomesh-csi-driver-default 15s
kubectl wait --for=condition=Ready pod/fio
pod/fio condition met
Run fio tests
kubectl exec -it fio sh fio --name fio --filename=/mnt/fio --bs=256k --rw=write --ioengine=libaio --direct=1 --iodepth=128 --numjobs=1 --size=$(blockdev --getsize64 /mnt/fio) fio --name fio --filename=/mnt/fio --bs=4k --rw=randread --ioengine=libaio --direct=1 --iodepth=128 --numjobs=1 --size=$(blockdev --getsize64 /mnt/fio)
Clean up
kubectl delete pod fio kubectl delete pvc fio-pvc # You need to delete pv when reclaimPolicy is Retain kubectl delete pvc-d7916b34-50cd-49bd-86f9-5287db1265cb