Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerNameToAggregateStateMap ¶
func GetContainerNameToAggregateStateMap(vpa *model.Vpa) model.ContainerNameToAggregateStateMap
Types ¶
type Recommender ¶
type Recommender interface { // RunOnce performs one iteration of recommender duties followed by update of recommendations in VPA objects. RunOnce() // GetClusterState returns ClusterState used by Recommender GetClusterState() *model.ClusterState // GetClusterStateFeeder returns ClusterStateFeeder used by Recommender GetClusterStateFeeder() input.ClusterStateFeeder // UpdateVPAs computes recommendations and sends VPAs status updates to API Server UpdateVPAs() // MaintainCheckpoints stores current checkpoints in API Server and garbage collect old ones // MaintainCheckpoints writes at least minCheckpoints if there are more checkpoints to write. // Checkpoints are written until ctx permits or all checkpoints are written. MaintainCheckpoints(ctx context.Context, minCheckpoints int) }
Recommender recommend resources for certain containers, based on utilization periodically got from metrics api.
func NewRecommender ¶
Click to show internal directories.
Click to hide internal directories.