preferencebinpack

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPreferenceBinPack

func NewPreferenceBinPack(frameworkHandle framework.Handle) (framework.Plugin, error)

func Plan

func Plan(
	rsp *ReplicaSchedulingPreference,
	totalReplicas int64,
	availableClusters []string,
	currentReplicaCount map[string]int64,
	estimatedCapacity map[string]int64,
	limitedCapacity map[string]int64,
	avoidDisruption bool,
	keepUnschedulableReplicas bool,
	scheduledReplicas map[string]int64,
) (map[string]int64, map[string]int64, error)

Types

type ClusterPreferences

type ClusterPreferences struct {
	// Minimum number of replicas that should be assigned to this cluster workload object. 0 by default.
	MinReplicas int64

	// Maximum number of replicas that should be assigned to this cluster workload object.
	// Unbounded if no value provided (default).
	MaxReplicas *int64
}

ClusterPreferences regarding number of replicas assigned to a cluster workload object (dep, rs, ..) within a federated workload object.

type PreferenceBinPack

type PreferenceBinPack struct{}

func (*PreferenceBinPack) Name

func (pl *PreferenceBinPack) Name() string

func (*PreferenceBinPack) ReplicaScheduling

type ReplicaSchedulingPreference

type ReplicaSchedulingPreference struct {
	Clusters map[string]ClusterPreferences
}

Jump to

Keyboard shortcuts

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