helper

package
v0.0.0-...-d083f33 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineQoSTestPod

func DefineQoSTestPod(namespace, nodeName, cpuReq, cpuLimit, memReq, memLimit string) (*pod.Builder, error)

DefineQoSTestPod defines test pod with given cpu and memory resources.

func GetPerformanceProfileWithCPUSet

func GetPerformanceProfileWithCPUSet() (*nto.Builder, error)

GetPerformanceProfileWithCPUSet returns the first performance profile found with reserved and isolated cpuset.

func SetCPUFreq

func SetCPUFreq(
	perfProfile *nto.Builder,
	desiredIsolatedCoreFreq *performancev2.CPUfrequency,
	desiredReservedCoreFreq *performancev2.CPUfrequency) error

SetCPUFreq updates the performance profile with the given isolated and reserved core frequencies and verifies that the frequencies have been updated on the spoke cluster.

func SetPowerModeAndWaitForMcpUpdate

func SetPowerModeAndWaitForMcpUpdate(
	perfProfile *nto.Builder, node nodes.Builder, perPodPowerManagement, highPowerConsumption, realTime bool) error

SetPowerModeAndWaitForMcpUpdate updates the performance profile with the given workload hints, and waits for the mcp update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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