Skip to content

Idea - chaos testing #258

Closed
Closed

Description

@slnowak

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.

Activity

  1. stale commented on Oct 28, 2018

    @stale

    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.

  2. rnorth commented on Oct 28, 2018

    @rnorth
    Member

    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!

  3. stale commented on Jan 26, 2019

    @stale

    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.

  4. stale commented on Feb 9, 2019

    @stale

    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.

  5. rnorth commented on Feb 9, 2019

    @rnorth
    Member

    Reopening- I’d still like to do this!

    Sent with GitHawk

  6. reopened this on Feb 9, 2019
  7. stale commented on May 10, 2019

    @stale

    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.

  8. rnorth commented on May 15, 2019

    @rnorth
    Member

    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.

  9. nicoloboschi commented on Jun 8, 2022

    @nicoloboschi
    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions