forked from longhorn/kbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fio-cmp.yaml
105 lines (105 loc) · 2.66 KB
/
fio-cmp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: kbench-pvc-1
spec:
volumeMode: Filesystem
#volumeMode: Block
#storageClassName: longhorn # replace with your storage class
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 31Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: kbench-pvc-2
spec:
volumeMode: Filesystem
#volumeMode: Block
storageClassName: longhorn # replace with your storage class
#storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 31Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: kbench
spec:
template:
metadata:
labels:
kbench: fio
spec:
containers:
- name: kbench
image: yasker/kbench:latest
imagePullPolicy: Always
env:
# - name: MODE
# value: "quick" # for debugging
# - name: MODE
# value: "random-read-iops"
# - name: MODE
# value: "sequential-read-iops"
# - name: MODE
# value: "random-read-bandwidth"
# - name: MODE
# value: "sequential-read-bandwidth"
# - name: MODE
# value: "random-read-latency"
# - name: MODE
# value: "sequential-read-latency"
# - name: MODE
# value: "random-write-iops"
# - name: MODE
# value: "sequential-write-iops"
# - name: MODE
# value: "random-write-bandwidth"
# - name: MODE
# value: "sequential-write-bandwidth"
# - name: MODE
# value: "random-write-latency"
# - name: MODE
# value: "sequential-write-latency"
- name: MODE
value: "full" # run all tests
- name: FIRST_VOL_NAME
value: Local-Path
- name: FIRST_VOL_FILE
value: "/volume1/test"
- name: SECOND_VOL_NAME
value: Longhorn
- name: SECOND_VOL_FILE
value: "/volume2/test"
- name: SIZE
value: "30G" # must be smaller or match the PVC size
- name: CPU_IDLE_PROF
value: "disabled" # must be "enabled" or "disabled"
volumeMounts:
- name: vol1
mountPath: /volume1/
- name: vol2
mountPath: /volume2/
command: ["bash", "/fio/cmp_run.sh"]
#volumeDevices:
#- name: vol1
# devicePath: /volume1/test
#- name: vol2
# devicePath: /volume2/test
restartPolicy: Never
volumes:
- name: vol1
persistentVolumeClaim:
claimName: kbench-pvc-1
- name: vol2
persistentVolumeClaim:
claimName: kbench-pvc-2
backoffLimit: 0