Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUUsageBalancingStep ¶
type CPUUsageBalancingStep struct {
// BaseStep is a helper struct that provides common functionality for all steps.
scheduling.BaseStep[api.ExternalSchedulerRequest, CPUUsageBalancingStepOpts]
}
Step to balance CPU usage by avoiding highly used storage pools.
func (*CPUUsageBalancingStep) Run ¶
func (s *CPUUsageBalancingStep) Run(traceLog *slog.Logger, request api.ExternalSchedulerRequest) (*scheduling.StepResult, error)
Downvote hosts that are highly contended.
type CPUUsageBalancingStepOpts ¶
type CPUUsageBalancingStepOpts 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.
func (CPUUsageBalancingStepOpts) Validate ¶
func (o CPUUsageBalancingStepOpts) Validate() error
Click to show internal directories.
Click to hide internal directories.