scheduler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package scheduler implements scheduling algorithms for Proxmox VMs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScheduleVM

func ScheduleVM(ctx context.Context, machineScope *scope.MachineScope) (string, error)

ScheduleVM decides which node to a ProxmoxMachine should be scheduled on. It requires the machine's ProxmoxCluster to have at least 1 allowed node.

Types

type InsufficientMemoryError

type InsufficientMemoryError struct {
	// contains filtered or unexported fields
}

InsufficientMemoryError is used when the scheduler cannot assign a VM to a node because it would exceed the node's memory limit.

func (InsufficientMemoryError) Error

func (err InsufficientMemoryError) Error() string

Jump to

Keyboard shortcuts

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