scheduler

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package scheduler features the scheduler for Fleet workloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

Scheduler is the scheduler for Fleet workloads.

func NewScheduler

func NewScheduler(
	name string,
	framework framework.Framework,
	queue queue.ClusterResourcePlacementSchedulingQueue,
	manager ctrl.Manager,
) *Scheduler

NewScheduler creates a scheduler.

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context)

Run starts the scheduler.

Note that this is a blocking call. It will only return when the context is cancelled.

Directories

Path Synopsis
Package clustereligibilitychecker features a utility for verifying if a member cluster is eligible for resource placement.
Package clustereligibilitychecker features a utility for verifying if a member cluster is eligible for resource placement.
Package framework features the scheduler framework, which the scheduler runs to schedule a placement to most appropriate clusters.
Package framework features the scheduler framework, which the scheduler runs to schedule a placement to most appropriate clusters.
parallelizer
Package parallelizer features some utilities to help run tasks in parallel.
Package parallelizer features some utilities to help run tasks in parallel.
plugins/clusteraffinity
Package clusteraffinity features a scheduler plugin that enforces cluster affinity (if any) defined on a CRP.
Package clusteraffinity features a scheduler plugin that enforces cluster affinity (if any) defined on a CRP.
plugins/clustereligibility
Package clustereligibility features a scheduler plugin that filters out clusters that are not eligible for resource placement.
Package clustereligibility features a scheduler plugin that filters out clusters that are not eligible for resource placement.
plugins/sameplacementaffinity
Package sameplacementaffinity features a scheduler plugin that filters out any cluster that has been already scheduled/bounded to the resource placement and prefers the same cluster which has an obsolete binding.
Package sameplacementaffinity features a scheduler plugin that filters out any cluster that has been already scheduled/bounded to the resource placement and prefers the same cluster which has an obsolete binding.
plugins/topologyspreadconstraints
Package topologyspreadconstraints features a scheduler plugin that enforces the topology spread constraints (if any) defined on a CRP.
Package topologyspreadconstraints features a scheduler plugin that enforces the topology spread constraints (if any) defined on a CRP.
uniquename
package uniquename features some utilities that are used to generate unique names in use by the scheduler.
package uniquename features some utilities that are used to generate unique names in use by the scheduler.
Package profile holds the definition of a scheduling Profile.
Package profile holds the definition of a scheduling Profile.
Package queue features a scheduling queue, which keeps track of all placements for the scheduler to schedule.
Package queue features a scheduling queue, which keeps track of all placements for the scheduler to schedule.
watchers
clusterresourceplacement
Package clusterresourceplacement features a controller that enqueues CRPs for the scheduler to process where the CRP is marked for deletion.
Package clusterresourceplacement features a controller that enqueues CRPs for the scheduler to process where the CRP is marked for deletion.
clusterschedulingpolicysnapshot
Package clusterschedulingpolicysnapshot features a controller that enqueues CRPs for the scheduler to process where there is a change in their scheduling policy snapshots.
Package clusterschedulingpolicysnapshot features a controller that enqueues CRPs for the scheduler to process where there is a change in their scheduling policy snapshots.
membercluster
Package membercluster features a controller that enqueues CRPs on member cluster changes.
Package membercluster features a controller that enqueues CRPs on member cluster changes.

Jump to

Keyboard shortcuts

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