Documentation ¶
Index ¶
- Constants
- func AddContent(ignitionConfig *igntypes.Config, content []byte, dst string, mode *int)
- func GetBashScriptPath(scriptName string) string
- func GetHugepagesAllocationUnitOptions(hugepagesSize string, hugepagesCount int32, numaNode int32) []*unit.UnitOption
- func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)
- func GetMachineConfigName(profile *performancev2.PerformanceProfile) string
- func GetOCIHooksConfigContent(configFile string, profile *performancev2.PerformanceProfile) ([]byte, error)
- func GetSystemdContent(options []*unit.UnitOption) (string, error)
- func GetSystemdService(serviceName string) 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" // OCIHooksConfigDir is the default directory for the OCI hooks OCIHooksConfigDir = "/etc/containers/oci/hooks.d" // OCIHooksConfig file contains the low latency hooks configuration OCIHooksConfig = "99-low-latency-hooks.json" )
Variables ¶
This section is empty.
Functions ¶
func AddContent ¶ added in v0.0.41100
AddContent appends more content to the ignition configuration
func GetBashScriptPath ¶ added in v0.0.41100
GetBashScriptPath returns the script path containing teh directory and the script name
func GetHugepagesAllocationUnitOptions ¶ added in v0.0.41100
func GetHugepagesAllocationUnitOptions(hugepagesSize string, hugepagesCount int32, numaNode int32) []*unit.UnitOption
GetHugepagesAllocationUnitOptions returns list of unit options based on the settings of the hugepage
func GetHugepagesSizeKilobytes ¶
func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)
GetHugepagesSizeKilobytes retruns hugepages size in kilobytes
func GetMachineConfigName ¶
func GetMachineConfigName(profile *performancev2.PerformanceProfile) string
GetMachineConfigName generates machine config name from the performance profile
func GetOCIHooksConfigContent ¶
func GetOCIHooksConfigContent(configFile string, profile *performancev2.PerformanceProfile) ([]byte, error)
GetOCIHooksConfigContent reads and returns the content of the OCI hook file
func GetSystemdContent ¶ added in v0.0.41100
func GetSystemdContent(options []*unit.UnitOption) (string, error)
GetSystemdContent get systemd content from list of unit options
func GetSystemdService ¶ added in v0.0.41100
GetSystemdService returns the service name in systemd
func New ¶
func New(profile *performancev2.PerformanceProfile) (*machineconfigv1.MachineConfig, error)
New returns new machine configuration object for performance sensitive workloads
Types ¶
This section is empty.