machineconfig

package
v0.0.0-...-f7fcf8c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MCKernelRT is the value of the kernel setting in MachineConfig for the RT kernel
	MCKernelRT = "realtime"
	// MCKernelDefault is the value of the kernel setting in MachineConfig for the default kernel
	MCKernelDefault = "default"
	// HighPerformanceRuntime contains the name of the high-performance runtime
	HighPerformanceRuntime = "high-performance"
)

Variables

This section is empty.

Functions

func BootstrapWorkloadPinningMC

func BootstrapWorkloadPinningMC(role string, pinningMode *apiconfigv1.CPUPartitioningMode) (*machineconfigv1.MachineConfig, error)

BootstrapWorkloadPinningMC creates an initial state MachineConfig resource that establishes an empty CPU set for both CRIO config and Kubelet config. The purpose is provide empty state initialization for both CRIO and Kubelet so that the nodes always start and join the cluster in a Workload Pinning configuration.

When a performance profiles is created, they will override the config files in this MC with the desired CPU Set. If that performance profile were to be deleted later on, this initial MC will be the fallback that MCO re-renders and maintain a workload pinning configuration.

func GetHugepagesSizeKilobytes

func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)

GetHugepagesSizeKilobytes retruns hugepages size in kilobytes

func GetMachineConfigName

func GetMachineConfigName(profileName string) string

GetMachineConfigName generates machine config name from the performance profile

func MoveOvsIntoOwnSlice

func MoveOvsIntoOwnSlice() (bool, string)

func New

New returns new machine configuration object for performance sensitive workloads

Types

This section is empty.

Jump to

Keyboard shortcuts

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