add new nvme storage to monitor
This commit is contained in:
30
README.md
30
README.md
@@ -51,31 +51,29 @@ sys 0m0.000s
|
||||
|
||||
## Disk
|
||||
|
||||
Test command:
|
||||
|
||||
```bash
|
||||
dd if=/dev/urandom of=$DISK/output bs=1M count=1024; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=1M count=1024; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
```
|
||||
|
||||
```bash
|
||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
||||
dd if=/dev/zero of=/tmp/hdd/output bs=64k count=250k; dd if=/tmp/hdd/output of=/dev/null; rm -f /tmp/hdd/output
|
||||
dd if=/dev/zero of=/tmp/extssd/output bs=64k count=250k; dd if=/tmp/extssd/output of=/dev/null; rm -f /tmp/extssd/output
|
||||
dd if=/dev/zero of=/tmp/nvme/output bs=64k count=250k; dd if=/tmp/nvme/output of=/dev/null; rm -f /tmp/nvme/output
|
||||
export DISK=/tmp/hdd/
|
||||
export DISK=/tmp/usbssd/
|
||||
export DISK=/tmp/nvme/
|
||||
```
|
||||
|
||||
### Mainframe
|
||||
|
||||
```bash
|
||||
export DISK=/nvme
|
||||
dd if=/dev/zero of=$DISK/output bs=125 count=128000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=250 count=64000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=500 count=32000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=1k count=16000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=2k count=8000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=4k count=4000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=8k count=2000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=16k count=1000k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=32k count=500k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
dd if=/dev/zero of=$DISK/output bs=64k count=250k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
```
|
||||
|
||||
### Freenas
|
||||
|
||||
```bash
|
||||
export DISK=/mnt/enc0/kube
|
||||
dd if=/dev/zero of=$DISK/output bs=64k count=250k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
|
||||
export DISK=/mnt/USB_SSD/kube
|
||||
dd if=/dev/zero of=$DISK/output bs=64k count=250k; dd if=$DISK/output of=/dev/null; rm -f $DISK/output
|
||||
```
|
||||
|
||||
@@ -49,11 +49,11 @@ spec:
|
||||
cpu: 500m
|
||||
volumeMounts:
|
||||
- mountPath: /tmp/hdd
|
||||
name: {{ .Release.Name }}-hdd
|
||||
name: hdd
|
||||
- mountPath: /tmp/nvme
|
||||
name: {{ .Release.Name }}-nvme
|
||||
- mountPath: /tmp/extssd
|
||||
name: {{ .Release.Name }}-extssd
|
||||
name: nvme
|
||||
- mountPath: /tmp/usbssd
|
||||
name: usbssd
|
||||
- name: stress
|
||||
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||
resources:
|
||||
@@ -65,7 +65,8 @@ spec:
|
||||
cpu: "48"
|
||||
- name: exporter
|
||||
image: hub.ducoterra.net/ducoterra/glances:latest
|
||||
command: ["glances", "-q", "--export", "statsd"]
|
||||
command: ["glances", "--export", "statsd"]
|
||||
tty: true
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Mi
|
||||
@@ -74,12 +75,12 @@ spec:
|
||||
memory: 512Mi
|
||||
cpu: 250m
|
||||
volumes:
|
||||
- name: {{ .Release.Name }}-hdd
|
||||
- name: hdd
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Release.Name }}-hdd
|
||||
- name: {{ .Release.Name }}-extssd
|
||||
claimName: hdd-{{ .Release.Name }}
|
||||
- name: usbssd
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Release.Name }}-extssd
|
||||
- name: {{ .Release.Name }}-nvme
|
||||
claimName: usbssd-{{ .Release.Name }}
|
||||
- name: nvme
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Release.Name }}-nvme
|
||||
claimName: nvme-{{ .Release.Name }}
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-hdd
|
||||
name: hdd-{{ .Release.Name }}
|
||||
spec:
|
||||
storageClassName: hdd
|
||||
accessModes:
|
||||
@@ -13,7 +13,7 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-nvme
|
||||
name: nvme-{{ .Release.Name }}
|
||||
spec:
|
||||
storageClassName: nvme
|
||||
accessModes:
|
||||
@@ -25,7 +25,7 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-extssd
|
||||
name: usbssd-{{ .Release.Name }}
|
||||
spec:
|
||||
storageClassName: hdd
|
||||
accessModes:
|
||||
|
||||
Reference in New Issue
Block a user