rsp

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: 14 Imported by: 0

Documentation

Overview

TODO(all) - implement score for macroservice. - implement filter/score for socket service. - implement filter/score for GPU service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableToPercentage

func AvailableToPercentage(
	clusterAvailables map[string]corev1.ResourceList,
	resourceName corev1.ResourceName,
	weightLimit map[string]int64,
) (clusterWeights map[string]int64, err error)

func CalcWeightLimit

func CalcWeightLimit(
	clusters []*fedcorev1a1.FederatedCluster,
	resourceName corev1.ResourceName,
	supplyLimitRatio float64,
) (weightLimit map[string]int64, err error)

func NewClusterCapacityWeight

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

func QueryAllocatable

func QueryAllocatable(clusters []*fedcorev1a1.FederatedCluster) map[string]corev1.ResourceList

QueryAllocatable aggregate cluster allocatable resource.

func QueryAvailable

func QueryAvailable(clusters []*fedcorev1a1.FederatedCluster) map[string]corev1.ResourceList

QueryAvailable aggregate cluster available resource.

func QueryClusterResource

func QueryClusterResource(clusters []*fedcorev1a1.FederatedCluster, resource string) map[string]corev1.ResourceList

QueryClusterResource aggregate cluster resources, accept available and allocatable.

Types

type ClusterCapacityWeight

type ClusterCapacityWeight struct{}

func (*ClusterCapacityWeight) Name

func (pl *ClusterCapacityWeight) Name() string

func (*ClusterCapacityWeight) ReplicaScheduling

Jump to

Keyboard shortcuts

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