feat: JVM fault injection, phase one #748
Open
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 this PR does / why we need it:
This is the first pull request in a series of pull requests that will implement JVM fault injection. For more background, please read the proposal here: https://github.com/litmuschaos/litmus/blob/master/proposals/jvm-fault-injection.md
This is a java tool that can consume memory or CPU in a running JVM. See the README.md file for more details.
Special notes for your reviewer:
This pull request only contains the Java code part of the fault injection. The intention is to invoke this from helper-pod running in the same node as the target JVM.
Future pull requests will contain: building a jar-file and including it in the litmus-go image and the code for two experiments (cpu and memory allocation) in go code that invokes the java tool.
Checklist:
breaking-changes
tagrequires-upgrade
tag