expander

package
v1.46.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxInFlightNodes           = 15
	WaitingInFlightNodesPeriod = 20 * time.Second
)

Variables

This section is empty.

Functions

func NewUnscheduledPodHandler

func NewUnscheduledPodHandler(ctx context.Context, scheduler *scheduler.Scheduler,
	allocator *gpuallocator.GpuAllocator, recorder record.EventRecorder) (*UnscheduledPodHandler, *NodeExpander)

Types

type NodeExpander

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

func NewNodeExpander

func NewNodeExpander(
	ctx context.Context,
	allocator *gpuallocator.GpuAllocator,
	scheduler *scheduler.Scheduler,
	recorder record.EventRecorder,
) *NodeExpander

func (*NodeExpander) ProcessExpansion

func (e *NodeExpander) ProcessExpansion(ctx context.Context, pod *corev1.Pod) error

func (*NodeExpander) RemoveInFlightNode

func (e *NodeExpander) RemoveInFlightNode(nodeName string)

func (*NodeExpander) RemovePreSchedulePod

func (e *NodeExpander) RemovePreSchedulePod(podName string, stopTimer bool)

type UnscheduledPodHandler

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

func (*UnscheduledPodHandler) HandleRejectedPod

func (h *UnscheduledPodHandler) HandleRejectedPod(ctx context.Context, podInfo *framework.QueuedPodInfo, status *fwk.Status)

Jump to

Keyboard shortcuts

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