Documentation ¶
Index ¶
Constants ¶
View Source
const (
EventKind = "autoscale"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteRule ¶
func Initialize ¶
func Initialize() error
Types ¶
type Config ¶
type Config struct { WaitTimeNewMachine time.Duration RunInterval time.Duration TotalMemoryMetadata string Enabled bool // contains filtered or unexported fields }
func CurrentConfig ¶
type Event ¶
type Event struct { ID interface{} `bson:"_id"` MetadataValue string Action string // scaleActionAdd, scaleActionRemove, scaleActionRebalance Reason string // dependend on scaler StartTime time.Time EndTime time.Time `bson:",omitempty"` Successful bool Error string `bson:",omitempty"` Node provision.NodeSpec `bson:",omitempty"` Log string `bson:",omitempty"` Nodes []provision.NodeSpec }
func ListAutoScaleEvents ¶
type EventCustomData ¶
type EventCustomData struct { Result *ScalerResult Nodes []provision.NodeSpec Rule *Rule }
type Rule ¶
type Rule struct { MetadataFilter string `bson:"_id"` Error string `bson:"-"` MaxContainerCount int ScaleDownRatio float32 MaxMemoryRatio float32 Enabled bool PreventRebalance bool }
type ScalerResult ¶
func (*ScalerResult) IsRebalanceOnly ¶
func (r *ScalerResult) IsRebalanceOnly() bool
func (*ScalerResult) NoAction ¶
func (r *ScalerResult) NoAction() bool
Click to show internal directories.
Click to hide internal directories.