-
Notifications
You must be signed in to change notification settings - Fork 37
[CHAOSPLT-259] Add percentage-based IP selection for network disruptions #1011
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
Open
aymericDD
wants to merge
1
commit into
aymeric.daurelle/CHAOSPLT-1360/fix
Choose a base branch
from
aymeric.daurelle/CHAOSPLT-259/feat
base: aymeric.daurelle/CHAOSPLT-1360/fix
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[CHAOSPLT-259] Add percentage-based IP selection for network disruptions #1011
aymericDD
wants to merge
1
commit into
aymeric.daurelle/CHAOSPLT-1360/fix
from
aymeric.daurelle/CHAOSPLT-259/feat
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 tasks
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
13 tasks
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🔗 Commit SHA: 6f36370 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
26cf119 to
e32b4dc
Compare
10db19f to
fcbc91d
Compare
e32b4dc to
f9c5119
Compare
13 tasks
fcbc91d to
e363d15
Compare
766b11f to
28c876d
Compare
e363d15 to
1a19143
Compare
Implements consistent hashing for selecting subsets of IPs based on percentage configuration in network disruptions. Enables deterministic IP selection across chaos pods. - Add SelectIPsByPercentage with SHA256-based hashing - Ensure consistent selection using seed parameter - Add comprehensive test coverage for edge cases - Add example demonstrating DNS resolver control Jira: CHAOSPLT-259
28c876d to
6f36370
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

What does this PR do?
Please briefly describe your changes as well as the motivation behind them:
This PR implements percentage-based IP selection for network disruptions, enabling users to target only a specific percentage (1-100%) of resolved IPs for both hosts and services.
Key Features:
Motivation:
Code Quality Checklist
Testing
unittests orend-to-endtests.unittests orend-to-endtests.- Created example manifest (
network_dns_resolver_control.yaml) demonstrating percentage-based selection- Tested with 50% host disruption and 30% service disruption scenarios
- Verified consistency: same IPs selected across multiple chaos pods within same disruption
- Verified variability: different IPs selected when disruption is recreated (new Disruption UID)
- Validated backward compatibility: existing disruptions work without modifications (defaults to 100%)
- [x] locally.
- [ ] as a canary deployment to a cluster.
Resolve issue: #843