Documentation
¶
Index ¶
- func CheckLoadPercentage(loadPercentage []string, replicaCount int) error
- func CreateLivenessPod(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func CreateLivenessService(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func DeleteLivenessDeployment(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func DeleteLivenessService(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func GetApplicationPodName(experimentsDetails *experimentTypes.ExperimentDetails, ...) (string, error)
- func GetApplicationReplicaCount(experimentsDetails *experimentTypes.ExperimentDetails, ...) (int, error)
- func GetLivenessPodResourceVersion(experimentsDetails *experimentTypes.ExperimentDetails, ...) (string, error)
- func GetLoadDistribution(experimentsDetails *experimentTypes.ExperimentDetails, ...) ([]string, error)
- func GetServiceClusterIP(experimentsDetails *experimentTypes.ExperimentDetails, ...) (string, error)
- func LivenessCheck(experimentsDetails *experimentTypes.ExperimentDetails, ...) (string, error)
- func LivenessCleanup(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func NodeToolStatusCheck(experimentsDetails *experimentTypes.ExperimentDetails, ...) error
- func ResourceVersionCheck(ResourceVersionBefore, ResourceVersionAfter string) error
- func WaitTillCycleComplete(experimentsDetails *experimentTypes.ExperimentDetails, ClusterIP string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLoadPercentage ¶
CheckLoadPercentage checks the load percentage on every replicas
func CreateLivenessPod ¶
func CreateLivenessPod(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) error
CreateLivenessPod will create a cassandra liveness deployment
func CreateLivenessService ¶
func CreateLivenessService(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) error
CreateLivenessService will create Cassandra liveness service
func DeleteLivenessDeployment ¶
func DeleteLivenessDeployment(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) error
DeleteLivenessDeployment deletes the livenes deployments and wait for its termination
func DeleteLivenessService ¶
func DeleteLivenessService(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) error
DeleteLivenessService deletes the liveness service and wait for its termination
func GetApplicationPodName ¶
func GetApplicationPodName(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) (string, error)
GetApplicationPodName will return the name of first application pod
func GetApplicationReplicaCount ¶
func GetApplicationReplicaCount(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) (int, error)
GetApplicationReplicaCount will return the replica count of the sts application
func GetLivenessPodResourceVersion ¶
func GetLivenessPodResourceVersion(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) (string, error)
GetLivenessPodResourceVersion will return the resource version of the liveness pod
func GetLoadDistribution ¶
func GetLoadDistribution(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, targetPod string) ([]string, error)
GetLoadDistribution will get the load distribution on all the replicas of the application pod in an array formats
func GetServiceClusterIP ¶
func GetServiceClusterIP(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) (string, error)
GetServiceClusterIP will return the cluster IP of the liveness service
func LivenessCheck ¶
func LivenessCheck(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) (string, error)
LivenessCheck will create an external liveness pod which will continuously check for the liveness of cassandra statefulset
func LivenessCleanup ¶
func LivenessCleanup(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, ResourceVersionBefore string) error
LivenessCleanup will check the status of liveness pod cycle and wait till the cycle comes to the complete state At last it removes/cleanup the liveness deploy and svc
func NodeToolStatusCheck ¶
func NodeToolStatusCheck(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) error
NodeToolStatusCheck checks for the distribution of the load on the ring
func ResourceVersionCheck ¶
ResourceVersionCheck compare the resource version for target pods before and after chaos
func WaitTillCycleComplete ¶
func WaitTillCycleComplete(experimentsDetails *experimentTypes.ExperimentDetails, ClusterIP string) error
WaitTillCycleComplete will check the status of liveness pod cycle Wait till the cycle come to the complete state
Types ¶
This section is empty.