plugin

package
v0.0.0-...-46e2b68 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TopologyAwareScheduler is the name of the plugin used in the plugin registry and configurations.
	Name = "TopologyAwareScheduler"

	NoneTopologyManagerPolicy           = "none"
	BestEffortTopologyManagerPolicy     = "best-effort"
	RestrictedTopologyManagerPolicy     = "restricted"
	SingleNUMANodeTopologyManagerPolicy = "single-numa-node"
)

Variables

This section is empty.

Functions

func NewTopologyAwareScheduler

func NewTopologyAwareScheduler(_ *runtime.Unknown, handle framework.FrameworkHandle) (framework.Plugin, error)

NewTopologyMatch initializes a new plugin and returns it.

Types

type TopologyAwareScheduler

type TopologyAwareScheduler struct {

	// cli    *clientset.Clientset
	NodeTopologyInformer    topoinformerv1alpha1.NodeResourceTopologyInformer
	TopologyInformerFactory topoinformerexternal.SharedInformerFactory
	NodeTopologies          NodeTopologyMap
	NodeTopologyGuard       sync.RWMutex
	// contains filtered or unexported fields
}

func (*TopologyAwareScheduler) Filter

func (tm *TopologyAwareScheduler) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

func (*TopologyAwareScheduler) Name

func (tm *TopologyAwareScheduler) Name() string

func (*TopologyAwareScheduler) Unreserve

func (tm *TopologyAwareScheduler) Unreserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string)

Jump to

Keyboard shortcuts

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