scheduling

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package scheduling provides interface to implement workload schedulers

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSchedulingNoNode           = errors.New("no node fit for scheduling")
	ErrSchedulingNoReadyNode      = errors.New("no ready nodes available")
	ErrSchedulingNoMatchingNode   = errors.New("no nodes match selector")
	ErrSchedulingNodeDisconnected = errors.New("selected node is disconnected")
)

Functions

This section is empty.

Types

type Scheduler

type Scheduler interface {
	Score(context.Context, *tasksv1.Task, []*nodesv1.Node) (map[string]float64, error)
	Schedule(context.Context, *tasksv1.Task, []*nodesv1.Node) (*nodesv1.Node, error)
}

func NewHorizontalScheduler

func NewHorizontalScheduler() Scheduler

Jump to

Keyboard shortcuts

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