You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hack/benchmark/cpu_usage/auto_pause/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,22 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
5
5
*`update_summary.sh`: create one summary csv file of each drivers and products
6
6
*`chart.go`: create bar chart graph as a png file
7
7
8
-
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker, docker with auto-pause) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9
-
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker, docker with auto-pause) and kind, k3d in case of Linux.
8
+
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9
+
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker) and kind, k3d in case of Linux.
10
10
`benchmark_local_k8s.sh` take these steps to measure `auto-pause` vs. `non auto-pause`.
11
11
12
12
1. start each local kubernetes tool
13
-
2. deploy sample application(nginx deployment)
13
+
2. deploy sample application(nginx deployment) to each tool
14
14
3. wait 1 minute without anything
15
15
4. measure No.3 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
16
-
5. enable auto-pause addons(only if tool is minikube)
17
-
6. wait 3 minute without anything
18
-
7. measure No.6 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
16
+
5. if tool is minikube, enable auto-pause addon which pause control plane
17
+
6. if tool is minikube, wait 1 minute so that control plane will become Paused status(It takes 1 minute to become Pause status from Stopped status)
18
+
7. if tool is minikube, verify if minikube control plane is paused
19
+
8. if tool is minikube, wait 3 minute without anything
20
+
9. if tool is minikube, measure No.8 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
21
+
22
+
No.1-4: Initial start CPU usage with sample(nginx) deployment
23
+
No.5-9: Auto Paused CPU usage with sample(nginx) deployment
19
24
20
25
# How to use these scripts
21
26
@@ -31,4 +36,4 @@ If you update the benchmark results to [our website](https://minikube.sigs.k8s.i
0 commit comments