Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsNoExecutedPod ¶
func ContainsNoExecutedPod(pods []PodContext) bool
func GetFirstPendingPod ¶
func GetFirstPendingPod(pods []PodContext) int
Types ¶
type ActionType ¶
type ActionType string
const ( ThrottleDown ActionType = "ThrottleDown" ThrottleUp ActionType = "ThrottleUp" Evict ActionType = "Evict" )
type ClassAndPriority ¶
type ClassAndPriority struct { PodQOSClass v1.PodQOSClass PriorityClassValue int32 }
type ContainerState ¶
func GetPodUsage ¶
func GetPodUsage(metricName string, stateMap map[string][]common.TimeSeries, pod *v1.Pod) (float64, []ContainerState)
func GetUsageById ¶
func GetUsageById(usages []ContainerState, containerId string) (ContainerState, error)
type MemoryThrottleExecutor ¶
type MemoryThrottleExecutor struct { // to force gc the page cache of low level pods ForceGC bool `json:"forceGC,omitempty"` }
type PodContext ¶
type PodContext struct { Key types.NamespacedName QOSClass v1.PodQOSClass Priority int32 StartTime *metav1.Time DeletionGracePeriodSeconds *int32 ElasticCPULimit int64 ElasticMemLimit int64
func BuildPodActionContext ¶
func BuildPodActionContext(pod *v1.Pod, stateMap map[string][]common.TimeSeries, action *ensuranceapi.AvoidanceAction, actionType ActionType) PodContext
Click to show internal directories.
Click to hide internal directories.