machineconfig

package
v0.0.41101 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 17 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"

	// 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

func AddContent(ignitionConfig *igntypes.Config, content []byte, dst string, mode *int)

AddContent appends more content to the ignition configuration

func GetBashScriptPath added in v0.0.41100

func GetBashScriptPath(scriptName string) string

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

func GetSystemdService(serviceName string) string

GetSystemdService returns the service name in systemd

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