scale

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CruiseControlScaler added in v0.12.0

type CruiseControlScaler struct {
	// contains filtered or unexported fields
}

func NewCruiseControlScaler added in v0.12.0

func NewCruiseControlScaler(namespace, kubernetesClusterDomain, endpoint, clusterName string) CruiseControlScaler

func (*CruiseControlScaler) DownsizeCluster added in v0.12.0

func (cc *CruiseControlScaler) DownsizeCluster(brokerIds []string) (string, string, error)

DownsizeCluster downscales Kafka cluster

func (*CruiseControlScaler) GetBrokerIDWithLeastPartition added in v0.12.0

func (cc *CruiseControlScaler) GetBrokerIDWithLeastPartition() (string, error)

GetBrokerIDWithLeastPartition returns

func (*CruiseControlScaler) GetCCTaskState added in v0.12.0

GetCCTaskState checks whether the given CC Task ID finished or not

func (*CruiseControlScaler) GetLiveKafkaBrokersFromCruiseControl added in v0.12.0

func (cc *CruiseControlScaler) GetLiveKafkaBrokersFromCruiseControl(brokerIds []string) ([]string, error)

Get brokers status from CC from a provided list of broker ids

func (*CruiseControlScaler) KillCCTask added in v0.12.0

func (cc *CruiseControlScaler) KillCCTask() error

KillCCTask kills the specified CC task

func (*CruiseControlScaler) RebalanceCluster added in v0.12.0

func (cc *CruiseControlScaler) RebalanceCluster() (string, error)

RebalanceCluster rebalances Kafka cluster using CC

func (*CruiseControlScaler) RebalanceDisks added in v0.12.0

func (cc *CruiseControlScaler) RebalanceDisks(brokerIdsWithMountPath map[string][]string) (string, string, error)

RebalanceDisks rebalances Kafka broker replicas between disks using CC

func (*CruiseControlScaler) RunPreferedLeaderElectionInCluster added in v0.12.0

func (cc *CruiseControlScaler) RunPreferedLeaderElectionInCluster() (string, error)

RunPreferedLeaderElectionInCluster runs leader election in Kafka cluster using CC

func (*CruiseControlScaler) UpScaleCluster added in v0.12.0

func (cc *CruiseControlScaler) UpScaleCluster(brokerIds []string) (string, string, error)

UpScaleCluster upscales Kafka cluster

Jump to

Keyboard shortcuts

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