scale

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockNewCruiseControlScaler

func MockNewCruiseControlScaler()

Types

type CruiseControlScaler

type CruiseControlScaler interface {
	GetLiveKafkaBrokersFromCruiseControl(brokerIDs []string) ([]string, error)
	GetBrokerIDWithLeastPartition() (string, error)
	UpScaleCluster(brokerIDs []string) (string, string, error)
	DownsizeCluster(brokerIDs []string) (string, string, error)
	RebalanceDisks(brokerIDsWithMountPath map[string][]string) (string, string, error)
	RebalanceCluster() (string, error)
	RunPreferedLeaderElectionInCluster() (string, error)
	KillCCTask() error
	GetCCTaskState(uTaskID string) (banzaicloudv1beta1.CruiseControlUserTaskState, error)
}

func NewCruiseControlScaler

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

Jump to

Keyboard shortcuts

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