-
Notifications
You must be signed in to change notification settings - Fork 92
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
[k8s] Ability to test against bad network conditions #1092
Comments
Done @pepoviola so in order to let's say adding the latency to the network within the namespace like hamid2 the config below is needed:
and here is the result after applying this manifest per namespace: so as you see above the 100ms latency added to the connection. clsoing the issue. |
Hi @emamihe, is also possible to add latency to |
yes @pepoviola
does this job |
Just to clarify, we should apply a manifest with the apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: delay
spec:
action: delay
mode: all
selector:
pod:
- hamid2
delay:
latency: '100ms'
correlation: '100'
jitter: '0ms' Can you confirm please? |
Regarding the selector part if you want to mention exact pod name it should be used the term
Hence the final manifest looks like:
|
Closing here, I will re-org this initiative in other cards/issues. |
I will re-open this issue to use it as umbrella issue for the pending tasks. |
The Vision
Zombienet clusters and internal testnets are usually spawned within a single data center, where network speeds are often close to optimal. Unfortunately, in the real world things are not so ideal. Therefore, I'd propose to extend zombienet functionality w/ ability to simulate bad & adversary network conditions.
(extracted from #903).
The Plan
We want to first explore this scenarios using
k8s
(with chaos-mesh, since is already installed in our cluster) but we don't expose any way to configure the scenario for the test.Completed tasks
- [x] https://github.com//issues/927 - [x] https://github.com/paritytech/zombienet-sdk/issues/18 - [x] https://github.com/paritytech/zombienet-sdk/issues/171302 Umbrella issue for tracking
Delay
tasks (latency/jitter) in both network config and test-runner.1336 Umbrella issue for partition/isolation in both network config / test-runner.
The text was updated successfully, but these errors were encountered: