alexei-led / pumba

Chaos testing, network emulation, and stress testing tool for containers
Apache License 2.0
2.75k stars 193 forks source link

Stress Feature Not Working #210

Closed ramgiteng closed 1 year ago

ramgiteng commented 2 years ago

Hello @alexei-led,

I am unable to execute the pumba stress command. I have 5 containers in my Docker and would like to attack the containers' cpu/ram. The following is the command for applying stress on one container and the corresponding output.

Command: sudo docker run -d --cap-add SYS_ADMIN -it --name=pumba -v /var/run/docker.sock:/var/run/docker.sock gaiaadm/pumba stress -d 10s Output: FATA[0002] one or more stress test failed: stress-ng failed with error: stress-ng exited with error: cgroup change of group failed

I also ran docker container ls and noticed that alexeiled/stress-ng:latest-ubuntu and gaiaadm/pumba images were up and running for a brief period of time before exiting.

Details: Linux Distros: CentOS Docker version: 1.13.1 Pumba version: 0.7.8

Can you please help me troubleshoot this issue? Please let me know if you need any further details.

Thanks for the support!

alexei-led commented 2 years ago

will try to reproduce it

ramgiteng commented 2 years ago

Hi @alexei-led I was wondering if there has been any update on this. Also, how can we use pumba to attack the process within the container? For example: Inject CPU/RAM chaos into a Node or Java process running inside a docker container.

alexei-led commented 1 year ago

@ramgiteng you need to specify target container