This repository was archived by the owner on Mar 4, 2021. It is now read-only.
added ability to terminate based on ec2 tags. #290
Closed
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.
upgraded to jcloud 2.0.0 from 1.9.0 to remove the following noClassDefFoundError when attempting to do POST HTTP networklatency chaos.
java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions
forced com.google.inject.extensions to be version 4.0 to remove the 2nd NoClassDefFoundError when attempting to do POST HTTP networklatency chaos.
java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Maps
BasicInstanceGroup class now holds a new BasicInstance type and not just a string. This Instance type will hold more detailed meta data of the instances, specifically the associated ec2 tags.
Here is a sample of the ec2 tags that are included in the JSON. Only ec2 instances that have all the matching key=value pairs will be considered for termination. Amongst these, 1 ec2 server will be randomly terminated.
{ "eventType":"CHAOS_TERMINATION", "groupType":"ASG", "groupName":"SimianMonkeyASG", "chaosType":"ShutdownInstance",
"tags" : [
{"key" : "app-host-type", "value" : "reports"},
{"key" : "app-category", "value" : "reportServer"}
]
}