core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleAlgorithm

type ScheduleAlgorithm interface {
	Schedule(
		context.Context,
		framework.Framework,
		framework.SchedulingUnit,
		[]*fedcorev1a1.FederatedCluster,
	) (result ScheduleResult, err error)
}

func NewSchedulerAlgorithm

func NewSchedulerAlgorithm() ScheduleAlgorithm

type ScheduleResult

type ScheduleResult struct {
	// SuggestedClusters is a map contains the recommended cluster placements and replica distribution.
	// The key is the name of the cluster and the value is the recommended number of replicas for it.
	// If the value is nil, it means that there is no recommended number of replicas for the cluster (used in Duplicate scheduling mode).
	SuggestedClusters map[string]*int64
}

func (ScheduleResult) ClusterSet

func (result ScheduleResult) ClusterSet() sets.Set[string]

func (ScheduleResult) String

func (result ScheduleResult) String() string

Jump to

Keyboard shortcuts

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