chaos-mesh / chaosd

A Chaos Engineering toolkit.
Apache License 2.0
136 stars 63 forks source link

CPU stress test: process stopped #237

Open yzq opened 1 year ago

yzq commented 1 year ago

CPU stress test by chaosd or chao-mesh,it failed. the log is as follow

[2023/03/13 14:25:11.663 +08:00] [INFO] [stress.go:88] ["stressors normalize"] [arguments=" --cpu-load-slice 10 --cpu-method sqrt --cpu 8 --cpu-load 70"] [2023/03/13 14:25:11.664 +08:00] [INFO] [stress.go:109] ["Start stress-ng process successfully"] [command="/usr/local/chaosd-latest-linux-amd64/tools/stress-ng --cpu-load-slice 10 --cpu-method sqrt --cpu 8 --cpu-load 70"] [Pid=42869] 2023-03-13T14:25:11.669+0800 INFO background-process-manager bpm/bpm.go:247 process stopped {"uid": "67858a36-caca-4bf7-a5ef-a9590cdcbda8", "pid": 42869} [GIN] 2023/03/13 - 14:25:11 | 200 | 26.21323ms | 10.15.17.108 | POST "/api/attack/stress" [2023/03/13 14:28:11.041 +08:00] [WARN] [stress.go:122] ["Failed to get process"] [error="process does not exist"] [GIN] 2023/03/13 - 14:28:11 | 200 | 4.918973ms | 10.15.17.108 | DELETE "/api/attack/f66776ff-6843-4127-9d5d-3d9f17b92dd8"

nikitasavchenko555 commented 1 year ago

@yzq , Hi!

Please, write command that caused the error

yzq commented 1 year ago

@nikitasavchenko555 ./chaosd attack stress cpu --workers 8 --load 70