add dedicating stress container
This commit is contained in:
39
README.md
39
README.md
@@ -9,25 +9,52 @@ helm upgrade --install monitor ./helm
|
|||||||
## Temperature
|
## Temperature
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -- watch -n1 sensors
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c glances -- watch -n1 sensors
|
||||||
```
|
```
|
||||||
|
|
||||||
## CPU Throttling
|
## CPU Throttling
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -- watch -n1 lscpu
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c glances -- watch -n1 lscpu
|
||||||
```
|
```
|
||||||
|
|
||||||
## Stress
|
## Stress
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -- stress -c 48
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c stress -- stress -c 48
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Overclocking
|
||||||
|
|
||||||
|
<https://www.techpowerup.com/review/amd-ryzen-threadripper-3000-overclocking-deep-dive-asus-rog-zenith-ii-extreme/3.html>
|
||||||
|
|
||||||
## Disk
|
## Disk
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dd if=/dev/zero of=/tmp/hdd/output bs=16k count=100k; dd if=/tmp/hdd/output of=/dev/null; rm -f /tmp/hdd/output
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
||||||
dd if=/dev/zero of=/tmp/extssd/output bs=16k count=100k; dd if=/tmp/extssd/output of=/dev/null; rm -f /tmp/extssd/output
|
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/nvme/output bs=16k count=100k; dd if=/tmp/nvme/output of=/dev/null; rm -f /tmp/nvme/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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Mainframe
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
@@ -11,7 +11,6 @@ services:
|
|||||||
image: hub.ducoterra.net/ducoterra/iperf:latest
|
image: hub.ducoterra.net/ducoterra/iperf:latest
|
||||||
ports:
|
ports:
|
||||||
- 5201:5201
|
- 5201:5201
|
||||||
|
stress:
|
||||||
volumes:
|
build: stress
|
||||||
web_tmp:
|
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||||
exporter_tmp:
|
|
||||||
@@ -19,11 +19,11 @@ spec:
|
|||||||
- containerPort: 61208
|
- containerPort: 61208
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 1Mi
|
memory: 128Mi
|
||||||
cpu: 1m
|
cpu: 250m
|
||||||
limits:
|
limits:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
cpu: "48"
|
cpu: 500m
|
||||||
- name: iperf
|
- name: iperf
|
||||||
image: hub.ducoterra.net/ducoterra/iperf:latest
|
image: hub.ducoterra.net/ducoterra/iperf:latest
|
||||||
tty: true
|
tty: true
|
||||||
@@ -54,6 +54,15 @@ spec:
|
|||||||
name: {{ .Release.Name }}-nvme
|
name: {{ .Release.Name }}-nvme
|
||||||
- mountPath: /tmp/extssd
|
- mountPath: /tmp/extssd
|
||||||
name: {{ .Release.Name }}-extssd
|
name: {{ .Release.Name }}-extssd
|
||||||
|
- name: stress
|
||||||
|
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 250m
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
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", "-q", "--export", "statsd"]
|
||||||
|
|||||||
6
stress/Dockerfile
Normal file
6
stress/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt install -y stress
|
||||||
|
|
||||||
|
CMD sleep infinity
|
||||||
Reference in New Issue
Block a user