This docker container allows you to run:
- vdbench Oracle Suite
- FIO fio
- Hello IO diobench
% kubectl apply -f diobench.yaml
A sample job yaml for Kubernetes PVC looks like this
apiVersion: batch/v1
kind: Job
metadata:
name: diobench
spec:
template:
spec:
containers:
- name: diobench
image: xdatanext/diobench:latest
imagePullPolicy: Always
env:
- name: DIOBENCH_RESULTS
value: /data/perf_results
volumeMounts:
- mountPath: /data
name: diobench-pvc
#command: [ "/bin/diobench", "--hello", "/data" , "100", "8192" ]
command: ["/bin/diobench", "--fio", "/data", "fio_seq_RW"]
#command: [ "/bin/diobench", "--vdb", "/data", "sample" ]
restartPolicy: Never
volumes:
- name: diobench-pvc
persistentVolumeClaim:
claimName: diobench-pvc-claim
backoffLimit: 4
The example above runs the "diobench" test using fio sequential Read-Write test called fio_seq_RW .
The test run output is all sent to the stdout of the container run so use
% kubectl get jobs
diobench
% kubectl describe job diobench
...
...
Retrieve the logs for the I/O job
% kubectl logs diobench
and observe the output of the test run