cassandra

package
v0.0.0-...-3568c51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLoadPercentage

func CheckLoadPercentage(loadPercentage []string, replicaCount int) error

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

func ResourceVersionCheck(ResourceVersionBefore, ResourceVersionAfter string) error

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.

Directories

Path Synopsis
pod-delete

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL