scheduler

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailureError added in v1.0.1

type FailureError struct {
	PodName string
}

FailureError is returned when the FailTiDBSchedulerLabelKey is seen

func (FailureError) Error added in v1.0.1

func (ferr FailureError) Error() string

type Scheduler

type Scheduler interface {
	// Filter based on extender-implemented predicate functions. The filtered list is
	// expected to be a subset of the supplied list.
	Filter(*schedulerapi.ExtenderArgs) (*schedulerapi.ExtenderFilterResult, error)

	// Preempt implements scheduler extender preempt verb.
	Preempt(args *schedulerapi.ExtenderPreemptionArgs) (*schedulerapi.ExtenderPreemptionResult, error)

	// Prioritize based on extender-implemented priority functions. The returned scores & weight
	// are used to compute the weighted score for an extender. The weighted scores are added to
	// the scores computed  by kubernetes scheduler. The total scores are used to do the host selection.
	Priority(*schedulerapi.ExtenderArgs) (schedulerapi.HostPriorityList, error)
}

Scheduler is an interface for external processes to influence scheduling decisions made by kubernetes. This is typically needed for resources not directly managed by kubernetes.

func NewScheduler

func NewScheduler(kubeCli kubernetes.Interface, cli versioned.Interface) Scheduler

NewScheduler returns a Scheduler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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