-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat(experiments): Add pod memory hog experiment #31
Conversation
Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
@@ -12,25 +12,26 @@ import ( | |||
//GetENV fetches all the env variables from the runner pod | |||
func GetENV(experimentDetails *types.ExperimentDetails, expName string) { | |||
experimentDetails.ExperimentName = expName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either segregate by pkg/environment/common.go, pod-cpu-hog.go, pod-memory-hog.go etc., OR within environment.go add comments for: //common, //%Exp% etc.,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -32,7 +32,8 @@ type ExperimentDetails struct { | |||
ChaosPodName string | |||
Iterations int | |||
LIBImage string | |||
CPUcores int | |||
CPUcores int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we categorize here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested abort feature of pod-memory-hog
Tested PODS_AFFECTED_PERC with 3 Nginx replicas:
|
* refactor(experiments): Refactor litmus go experiments (#29) Signed-off-by: Udit Gaurav <uditgaurav@gmail.com> * feat(experiments): Add pod memory hog experiment (#31) Signed-off-by: Udit Gaurav <uditgaurav@gmail.com> * refactor(go-experiments): separate the types.go file for each experiment (#34) Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io> * update(contribution-guide): updating contribution guide according to new schema changes (#35) Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io> * chore(experiment): Add pod network duplication experiment in generic experiments of LitmusChaos (#27) * chore(experiment): Add pod network duplication experiment in generic experiments of LitmusChaos Signed-off-by: Udit Gaurav <uditgaurav@gmail.com> * bug(fix): Add for summary event and getting target container name (#37) Signed-off-by: Udit Gaurav <uditgaurav@gmail.com> * bug(fix): Remove extra index from the list in pod duplication experiment (#38) Signed-off-by: Udit Gaurav <uditgaurav@gmail.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>
Signed-off-by: Udit Gaurav udit.gaurav@mayadata.io
This PR contains:
dd
command to give a chaos spike.Issue:
fixes: litmuschaos/litmus#1559
Special notes for your reviewer: