server

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccurateSchedulerEstimatorServer

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

AccurateSchedulerEstimatorServer is the gRPC server of a cluster accurate scheduler estimator. Please see https://github.com/karmada-io/karmada/pull/580 (#580).

func NewEstimatorServer

func NewEstimatorServer(
	kubeClient kubernetes.Interface,
	dynamicClient dynamic.Interface,
	discoveryClient discovery.DiscoveryInterface,
	opts *options.Options,
	stopChan <-chan struct{},
) *AccurateSchedulerEstimatorServer

NewEstimatorServer creates an instance of AccurateSchedulerEstimatorServer.

func (*AccurateSchedulerEstimatorServer) GetUnschedulableReplicas added in v1.1.0

func (es *AccurateSchedulerEstimatorServer) GetUnschedulableReplicas(ctx context.Context, request *pb.UnschedulableReplicasRequest) (response *pb.UnschedulableReplicasResponse, rerr error)

GetUnschedulableReplicas is the implementation of gRPC interface. It will return the unschedulable replicas of a workload.

func (*AccurateSchedulerEstimatorServer) MaxAvailableReplicas

func (es *AccurateSchedulerEstimatorServer) MaxAvailableReplicas(ctx context.Context, request *pb.MaxAvailableReplicasRequest) (response *pb.MaxAvailableReplicasResponse, rerr error)

MaxAvailableReplicas is the implementation of gRPC interface. It will return the max available replicas that a cluster could accommodate based on its requirements.

func (*AccurateSchedulerEstimatorServer) Start

Start runs the accurate replica estimator server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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