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

Idea - chaos testing #258

Closed
slnowak opened this issue Dec 31, 2016 · 8 comments
Closed

Idea - chaos testing #258

slnowak opened this issue Dec 31, 2016 · 8 comments

Comments

@slnowak
Copy link
Contributor

slnowak commented Dec 31, 2016

There is a project called pumba https://github.com/gaia-adm/pumba, that kind of simulates chaos testing that netflix does, on container level.

There's also dockerized pumba, that could be easily started without the need of having pumba installed on your OS.

@rnorth What do you think about creating a module/project that provides dockerized pumba and a small DSL for running it?
Arquillian has something similar (http://arquillian.org/blog/2016/08/30/arquillian-cube-q-1-0-0-Alpha1/, check Container Chaos).

I think it would be useful to have such tools integrated with testcontainers.

@stale
Copy link

stale bot commented Oct 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Oct 28, 2018
@rnorth
Copy link
Member

rnorth commented Oct 28, 2018

I still consider this a really valuable potential feature, and am quite looking forward to #283 when it comes.

Not a stale issue, despite the age!

@stale stale bot removed the stale label Oct 28, 2018
@stale
Copy link

stale bot commented Jan 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Jan 26, 2019
@stale
Copy link

stale bot commented Feb 9, 2019

This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.

@stale stale bot closed this as completed Feb 9, 2019
@rnorth
Copy link
Member

rnorth commented Feb 9, 2019

Reopening- I’d still like to do this!

Sent with GitHawk

@rnorth rnorth reopened this Feb 9, 2019
@stale stale bot removed the stale label Feb 9, 2019
@stale
Copy link

stale bot commented May 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label May 10, 2019
@rnorth
Copy link
Member

rnorth commented May 15, 2019

This is now done since a while ago, in the form of #1330 - Toxiproxy support. I'll close this issue.
Thank you for the inspiration @slnowak.

@rnorth rnorth closed this as completed May 15, 2019
@nicoloboschi
Copy link
Contributor

I implemented a wrapper container for Pumba. The idea is to just wrap the existing docker container and add some Java utilities to start chaos commands. Also a graceful stop is needed.
You can find the simple implementation here:
https://github.com/datastax/cdc-apache-cassandra/blob/master/testcontainers/src/main/java/com/datastax/testcontainers/ChaosNetworkContainer.java

Only "netem loss" command is implemented but it should be easy to extend it to the others

If it's interesting I can work on it

cc @rnorth @slnowak

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

4 participants