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

Is it possible to add more than 1 netem subcommands? #115

Open
jordicenzano opened this issue Jan 7, 2019 · 3 comments
Open

Is it possible to add more than 1 netem subcommands? #115

jordicenzano opened this issue Jan 7, 2019 · 3 comments

Comments

@jordicenzano
Copy link

If you want to simulate a real network you have to add: losses, delay, corrupt, and rate.
And I could not find a way to run pumba with more than one of those subcommands.

I tried:
1- run 2 pumba containers with different settings (not working only 1 subcommand is applied)
2- Use follwing syntaxes (not working):

Test 1:
pumba netem --duration 5m delay --time 3000 mycontainer corrupt --percent 10 mycontainer

Test 2:
pumba netem --duration 5m delay --time 3000 corrupt --percent 10 mycontainer

Test 3:
pumba netem --duration 5m delay --time 3000 mycontainer --duration 5m corrupt --percent 10 mycontainer
@deanstef
Copy link

deanstef commented Apr 3, 2019

Any progress on that? Is it possible to run multiple netem subcommands to docker containers?

@jordicenzano
Copy link
Author

I ended up installing netem in a docker and calling it directly. Then it is possible (and easy) to pass different parameters (simulating different network problems): https://github.com/jordicenzano/live-streaming-ingest-advanced-simulation
I hope it helps

@deanstef
Copy link

deanstef commented Apr 3, 2019

Thank you, it helps a lot.

Do you think I can use the same approach to simulate network latencies between docker containers and then, use pumba to inject OTHER random delays/packet-loss/corruption ??

What I want to do is to configure a network between containers with reasonable latencies and then simulate network problems with pumba.

I have some doubt because the concurrency of netem commands inside the containers and pumba.

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