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
|
## 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
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- 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
|
export DISK=/tmp/hdd/
|
||||||
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
|
export DISK=/tmp/usbssd/
|
||||||
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/nvme/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mainframe
|
### Mainframe
|
||||||
|
|
||||||
|
```bash
|
||||||
export DISK=/nvme
|
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
|
### Freenas
|
||||||
|
|
||||||
|
```bash
|
||||||
export DISK=/mnt/enc0/kube
|
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
|
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
|
cpu: 500m
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /tmp/hdd
|
- mountPath: /tmp/hdd
|
||||||
name: {{ .Release.Name }}-hdd
|
name: hdd
|
||||||
- mountPath: /tmp/nvme
|
- mountPath: /tmp/nvme
|
||||||
name: {{ .Release.Name }}-nvme
|
name: nvme
|
||||||
- mountPath: /tmp/extssd
|
- mountPath: /tmp/usbssd
|
||||||
name: {{ .Release.Name }}-extssd
|
name: usbssd
|
||||||
- name: stress
|
- name: stress
|
||||||
image: hub.ducoterra.net/ducoterra/stress:latest
|
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||||
resources:
|
resources:
|
||||||
@@ -65,7 +65,8 @@ spec:
|
|||||||
cpu: "48"
|
cpu: "48"
|
||||||
- name: exporter
|
- name: exporter
|
||||||
image: hub.ducoterra.net/ducoterra/glances:latest
|
image: hub.ducoterra.net/ducoterra/glances:latest
|
||||||
command: ["glances", "-q", "--export", "statsd"]
|
command: ["glances", "--export", "statsd"]
|
||||||
|
tty: true
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 1Mi
|
memory: 1Mi
|
||||||
@@ -74,12 +75,12 @@ spec:
|
|||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ .Release.Name }}-hdd
|
- name: hdd
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Release.Name }}-hdd
|
claimName: hdd-{{ .Release.Name }}
|
||||||
- name: {{ .Release.Name }}-extssd
|
- name: usbssd
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Release.Name }}-extssd
|
claimName: usbssd-{{ .Release.Name }}
|
||||||
- name: {{ .Release.Name }}-nvme
|
- name: nvme
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Release.Name }}-nvme
|
claimName: nvme-{{ .Release.Name }}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-hdd
|
name: hdd-{{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
storageClassName: hdd
|
storageClassName: hdd
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -13,7 +13,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-nvme
|
name: nvme-{{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nvme
|
storageClassName: nvme
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-extssd
|
name: usbssd-{{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
storageClassName: hdd
|
storageClassName: hdd
|
||||||
accessModes:
|
accessModes:
|
||||||
|
|||||||
Reference in New Issue
Block a user