Created
May 7, 2020 14:03
-
-
Save janeczku/1d215f189457e9811d3d8914aba4baef to your computer and use it in GitHub Desktop.
Longhorn Performance Benchmark Testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: dbench-hostpath | |
spec: | |
template: | |
spec: | |
containers: | |
- name: dbench | |
image: logdna/dbench:latest | |
env: | |
- name: DBENCH_MOUNTPOINT | |
value: /data | |
- name: FIO_SIZE | |
value: 2G | |
- name: FIO_OFFSET_INCREMENT | |
value: 256M | |
volumeMounts: | |
- name: dbench-pv | |
mountPath: /data | |
restartPolicy: Never | |
volumes: | |
- name: dbench-pv | |
hostPath: | |
path: /mnt/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: longhorn-1-replica | |
provisioner: driver.longhorn.io | |
allowVolumeExpansion: true | |
parameters: | |
numberOfReplicas: "1" | |
diskSelector: "benchmark" | |
nodeSelector: "benchmark" | |
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: pvc-longhorn-1-replica | |
spec: | |
storageClassName: longhorn-1-replica | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: dbench | |
spec: | |
template: | |
spec: | |
containers: | |
- name: dbench | |
image: logdna/dbench:latest | |
env: | |
- name: DBENCH_MOUNTPOINT | |
value: /data | |
- name: FIO_SIZE | |
value: 2G | |
- name: FIO_OFFSET_INCREMENT | |
value: 256M | |
volumeMounts: | |
- name: dbench-pv | |
mountPath: /data | |
restartPolicy: Never | |
volumes: | |
- name: dbench-pv | |
persistentVolumeClaim: | |
claimName: pvc-longhorn-1-replica |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: longhorn-3-replica | |
provisioner: driver.longhorn.io | |
allowVolumeExpansion: true | |
parameters: | |
numberOfReplicas: "3" | |
diskSelector: "benchmark" | |
nodeSelector: "benchmark" | |
--- | |
-- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: pvc-longhorn-3-replica | |
spec: | |
storageClassName: longhorn-3-replica | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: dbench | |
spec: | |
template: | |
spec: | |
containers: | |
- name: dbench | |
image: logdna/dbench:latest | |
env: | |
- name: DBENCH_MOUNTPOINT | |
value: /data | |
- name: FIO_SIZE | |
value: 2G | |
- name: FIO_OFFSET_INCREMENT | |
value: 256M | |
volumeMounts: | |
- name: dbench-pv | |
mountPath: /data | |
restartPolicy: Never | |
volumes: | |
- name: dbench-pv | |
persistentVolumeClaim: | |
claimName: pvc-longhorn-3-replica |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment