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

randomly bringing up and down containers #3

Open
ratulmukh opened this issue Aug 18, 2014 · 5 comments
Open

randomly bringing up and down containers #3

ratulmukh opened this issue Aug 18, 2014 · 5 comments

Comments

@ratulmukh
Copy link

Is there a nice elegant way to spin up a couple hundred containers, and then randomly bring down and up a percentage of containers over time? I am trying to create a network with a few hundred nodes, and check how fault tolerant the network is to node failures.

@labisso
Copy link
Member

labisso commented Aug 19, 2014

There is not support for this, but I think it's a great idea and I'll keep it in mind for a future release. There are a couple of problems in the way right now:

  1. blockade doesn't support stopping/starting containers in a deployment, only interfering with. I'm hoping to get this into the next release soon.
  2. the blockade config language is pretty simple, so you'd have to lay out each of your hundreds of containers individually in the config. Ideally there'd be an easy way to say "launch 200 of these"

@ratulmukh
Copy link
Author

Thanks, David! I look forward to the day you bring out these features.

@ljwango
Copy link

ljwango commented Jan 18, 2016

The latest version,The two idea can be fulfilled?

@labisso
Copy link
Member

labisso commented Jan 18, 2016

The latest version helps with this, but randomly starting/stopping containers is not supported. However I think you could now accomplish your goal with a little scripting around blockade. There are now start and stop commands (http://blockade.readthedocs.org/en/latest/commands.html#start), and also a count parameter to launch many copies of a container (http://blockade.readthedocs.org/en/latest/config.html#count). So you could write a script that launches a blockade, then uses whatever logic you want to select containers to start/stop.

I could also see it as a feature in blockade itself, but it's not something I need at this time, so would have to come from an outside contribution.

@labisso
Copy link
Member

labisso commented Sep 29, 2016

Another user contributed the ability to randomly start/stop containers. It will be present in the imminent 0.3.0 release. Does this address your needs?

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

3 participants