-
Notifications
You must be signed in to change notification settings - Fork 72
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
Chaining of Commands e.g. flaky + slow #80
Comments
Hi, thanks for your comment, and your patience with my slow reply. I think chaining of commands should be possible and easy to implement, but I am having a hard time picturing what the CLI structure would look like. Do you have some ideas? Another possibility is just to chain different commands in a wrapper shell script (or via the REST API). That was my original intent with the Blockade CLI. |
Hi, thanks for the reply. blockade flaky --add --all The Result would be all container being slow and all but "mycontainer1" also duplicating packages mycontainer1:{duplicate=False, slow=True,flaky=False} It would also make sense to have a way to apply all network options(flaky,slow,..) defined in a config file or by the Rest API at once. I would also have to test which commands can be chained, because maybe its not possible to chain every command together. |
I'm not sure I understand your CLI example. Are those separate calls to blockade? If so that should already work. Blockade is already stateful - just the state about flaky/duplicated/etc is stored in the iptables or tc config of each container. |
Yes They are separate calls and you are right that blockade is already stateful. But as it is right now i cant have packet drop, duplicate packages and latency at the same time for a container. This is what i try to implement. |
Oh! I understand what you mean now. I think that is a useful feature, and I'd certainly welcome a pull request! I think it'd be best to avoid directly storing any additional state about the containers in blockade's internal state file ( As far as the implementation, the key code to figure out is the |
As far as i understand this isnt yet implemented but should be technically possible.
Do you see something that would prevent this ?
I may be able to contribute
The text was updated successfully, but these errors were encountered: