Documentation ¶
Index ¶
- Constants
- func BootstrapWorkloadPinningMC(role string, pinningMode *apiconfigv1.CPUPartitioningMode) (*machineconfigv1.MachineConfig, error)
- func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)
- func GetMachineConfigName(profileName string) string
- func MoveOvsIntoOwnSlice() (bool, string)
- func New(profile *performancev2.PerformanceProfile, ...) (*machineconfigv1.MachineConfig, error)
Constants ¶
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 ¶
GetMachineConfigName generates machine config name from the performance profile
func MoveOvsIntoOwnSlice ¶
func New ¶
func New(profile *performancev2.PerformanceProfile, opts *components.MachineConfigOptions) (*machineconfigv1.MachineConfig, error)
New returns new machine configuration object for performance sensitive workloads
Types ¶
This section is empty.