scheduling

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

scheduling

Hooks that serve cluster-autoscaler, standby nodes and NodeGroup priorities. Their owners are the owners of templates/cluster-autoscaler. The hooks live in node-manager because their input is NodeGroup.

  • cluster_autoscaler_deployment_requirements decides whether cluster-autoscaler has to run and builds the list of groups it may scale, separately for CAPI and for MCM. Without a group with a min and max range the autoscaler is not deployed.
  • set_ng_priorities turns cloudInstances.priority of the NodeGroups into the priority-expander configuration of cluster-autoscaler, so groups with a higher priority scale up first.
  • discover_standby_ng computes, for every NodeGroup with standby, how many placeholder pods to run and how much CPU and memory to reserve, and reports the current number of standby pods into the NodeGroup status.
  • nodegroup_status.go holds the NodeGroup status patch helper used by discover_standby_ng.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NumPercentRegex = regexp.MustCompile(`^([0-9]+)%$`)

Functions

This section is empty.

Types

type StandbyNodeGroupForValues

type StandbyNodeGroupForValues struct {
	Name          string     `json:"name"`
	Standby       int        `json:"standby"`
	ReserveCPU    string     `json:"reserveCPU"`
	ReserveMemory string     `json:"reserveMemory"`
	Taints        []v1.Taint `json:"taints"`
}

type StandbyNodeGroupInfo

type StandbyNodeGroupInfo struct {
	Name                 string
	NeedStandby          bool
	CurrentStandby       *int
	MaxPerZone           int
	ZonesCount           int
	Standby              *intstr.IntOrString
	OverprovisioningRate int64
	Taints               []v1.Taint
}

type StandbyNodeInfo

type StandbyNodeInfo struct {
	Group             string
	AllocatableCPU    *resource.Quantity
	AllocatableMemory *resource.Quantity
	IsReady           bool
	IsUnschedulable   bool
	CreationTimestamp metav1.Time
}

type StandbyPodInfo

type StandbyPodInfo struct {
	Group   string
	IsReady bool
}

Jump to

Keyboard shortcuts

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