Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attacking a container's available cpu/ram? #114

Closed
adamdavis40208 opened this issue Dec 21, 2018 · 3 comments
Closed

Attacking a container's available cpu/ram? #114

adamdavis40208 opened this issue Dec 21, 2018 · 3 comments

Comments

@adamdavis40208
Copy link

pumba's tagline is "Chaos testing and network emulation tool for Docker." Does resource exhaustion fit under this umbrella?

I'm currently researching different ways of accomplishing this with docker/linux base images.

I'm not sure what is readily available yet (without pre-installing agents to do the actual attacks, or relying on distro specific tools), but I'm curious what your thoughts are on the topic.

Thanks in advance!

@alexei-led
Copy link
Owner

@adamdavis40208 I have plans to add such capability to pumba. The first idea was to "inject" stress or stress-ng process into victim container and using stress tool to simulate a workload on CPU, memory and IO.
Currently, I'm thinking about different approach. Instead of simulating workload, try to "starve" container, by changing allocated resources: reducing CPU, memory and IO. Thus process running within victim container, will "hunger" for missing resources and this "hunger" should impact on overall system behaviour in a slimialr way as a "simulated" workload.

p.s.: I still did not start the implementation, but hope to implement this in one of upcoming releases

@adamdavis40208
Copy link
Author

What are you ideas for approaching this? I have some cycles to spare, we can use it for a discussion launch if anything

@alexei-led
Copy link
Owner

Done. Injecting stress-ng into target container cgroups did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants