disruption

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvictionCost

func EvictionCost(ctx context.Context, p *corev1.Pod) float64

EvictionCost returns the disruption cost computed for evicting the given pod.

func LifetimeRemaining

func LifetimeRemaining(clock clock.Clock, nodePool *v1.NodePool, nodeClaim *v1.NodeClaim) float64

lifetimeRemaining calculates the fraction of node lifetime remaining in the range [0.0, 1.0]. If the ExpireAfter is non-zero, we use it to scale down the disruption costs of candidates that are going to expire. Just after creation, the disruption cost is highest, and it approaches zero as the node ages towards its expiration time.

func ReschedulingCost

func ReschedulingCost(ctx context.Context, pods []*corev1.Pod) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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