kvm

package
v0.0.0-...-bc95524 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvoidOverloadedHostsCPUStep

type AvoidOverloadedHostsCPUStep struct {
	// BaseStep is a helper struct that provides common functionality for all steps.
	scheduler.BaseStep[api.ExternalSchedulerRequest, AvoidOverloadedHostsCPUStepOpts]
}

Step to avoid high cpu hosts by downvoting them.

func (*AvoidOverloadedHostsCPUStep) GetName

func (s *AvoidOverloadedHostsCPUStep) GetName() string

Get the name of this step, used for identification in config, logs, metrics, etc.

func (*AvoidOverloadedHostsCPUStep) Run

Downvote hosts that have high cpu load.

type AvoidOverloadedHostsCPUStepOpts

type AvoidOverloadedHostsCPUStepOpts struct {
	AvgCPUUsageLowerBound float64 `json:"avgCPUUsageLowerBound"` // -> mapped to ActivationLowerBound
	AvgCPUUsageUpperBound float64 `json:"avgCPUUsageUpperBound"` // -> mapped to ActivationUpperBound

	AvgCPUUsageActivationLowerBound float64 `json:"avgCPUUsageActivationLowerBound"`
	AvgCPUUsageActivationUpperBound float64 `json:"avgCPUUsageActivationUpperBound"`

	MaxCPUUsageLowerBound float64 `json:"maxCPUUsageLowerBound"` // -> mapped to ActivationLowerBound
	MaxCPUUsageUpperBound float64 `json:"maxCPUUsageUpperBound"` // -> mapped to ActivationUpperBound

	MaxCPUUsageActivationLowerBound float64 `json:"maxCPUUsageActivationLowerBound"`
	MaxCPUUsageActivationUpperBound float64 `json:"maxCPUUsageActivationUpperBound"`
}

Options for the scheduling step, given through the step config in the service yaml file. Use the options contained in this struct to configure the bounds for min-max scaling.

func (AvoidOverloadedHostsCPUStepOpts) Validate

type AvoidOverloadedHostsMemoryStep

type AvoidOverloadedHostsMemoryStep struct {
	// BaseStep is a helper struct that provides common functionality for all steps.
	scheduler.BaseStep[api.ExternalSchedulerRequest, AvoidOverloadedHostsMemoryStepOpts]
}

Step to avoid high cpu hosts by downvoting them.

func (*AvoidOverloadedHostsMemoryStep) GetName

Get the name of this step, used for identification in config, logs, metrics, etc.

func (*AvoidOverloadedHostsMemoryStep) Run

Downvote hosts that have high cpu load.

type AvoidOverloadedHostsMemoryStepOpts

type AvoidOverloadedHostsMemoryStepOpts struct {
	AvgMemoryUsageLowerBound float64 `json:"avgMemoryUsageLowerBound"` // -> mapped to ActivationLowerBound
	AvgMemoryUsageUpperBound float64 `json:"avgMemoryUsageUpperBound"` // -> mapped to ActivationUpperBound

	AvgMemoryUsageActivationLowerBound float64 `json:"avgMemoryUsageActivationLowerBound"`
	AvgMemoryUsageActivationUpperBound float64 `json:"avgMemoryUsageActivationUpperBound"`

	MaxMemoryUsageLowerBound float64 `json:"maxMemoryUsageLowerBound"` // -> mapped to ActivationLowerBound
	MaxMemoryUsageUpperBound float64 `json:"maxMemoryUsageUpperBound"` // -> mapped to ActivationUpperBound

	MaxMemoryUsageActivationLowerBound float64 `json:"maxMemoryUsageActivationLowerBound"`
	MaxMemoryUsageActivationUpperBound float64 `json:"maxMemoryUsageActivationUpperBound"`
}

Options for the scheduling step, given through the step config in the service yaml file. Use the options contained in this struct to configure the bounds for min-max scaling.

func (AvoidOverloadedHostsMemoryStepOpts) Validate

Jump to

Keyboard shortcuts

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