volcano

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0, BSD-2-Clause, MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	QueueNameLabelKey                         = "volcano.sh/queue-name"
	NetworkTopologyModeLabelKey               = "volcano.sh/network-topology-mode"
	NetworkTopologyHighestTierAllowedLabelKey = "volcano.sh/network-topology-highest-tier-allowed"
)

Variables

This section is empty.

Functions

func GetPluginName

func GetPluginName() string

Types

type VolcanoBatchScheduler

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

func (*VolcanoBatchScheduler) AddMetadataToChildResource added in v1.5.0

func (v *VolcanoBatchScheduler) AddMetadataToChildResource(_ context.Context, parent metav1.Object, child metav1.Object, groupName string)

func (*VolcanoBatchScheduler) CleanupOnCompletion added in v1.6.0

func (v *VolcanoBatchScheduler) CleanupOnCompletion(ctx context.Context, object metav1.Object) (bool, error)

CleanupOnCompletion recalculates and updates the PodGroup resources when a RayJob finishes. This is called when the RayJob reaches terminal state (Complete/Failed).

For RayCluster objects, this is a no-op because the PodGroup is cleaned up by the OwnerReference of the RayCluster.

For RayJob objects, the PodGroup's MinMember and MinResources are recalculated based on the live RayCluster state. This correctly handles deletion strategies:

  • If workers are suspended by DeleteWorkers policy, calculatePodGroupParams automatically excludes suspended groups, so the PodGroup reflects only the head pod.
  • If the RayCluster is deleted by DeleteCluster or ShutdownAfterJobFinishes, the PodGroup is updated with empty resources.

func (*VolcanoBatchScheduler) DoBatchSchedulingOnSubmission

func (v *VolcanoBatchScheduler) DoBatchSchedulingOnSubmission(ctx context.Context, object metav1.Object) error

func (*VolcanoBatchScheduler) Name

func (v *VolcanoBatchScheduler) Name() string

type VolcanoBatchSchedulerFactory

type VolcanoBatchSchedulerFactory struct{}

func (*VolcanoBatchSchedulerFactory) AddToScheme

func (vf *VolcanoBatchSchedulerFactory) AddToScheme(scheme *runtime.Scheme)

func (*VolcanoBatchSchedulerFactory) ConfigureReconciler

func (vf *VolcanoBatchSchedulerFactory) ConfigureReconciler(b *builder.Builder) *builder.Builder

func (*VolcanoBatchSchedulerFactory) New

Jump to

Keyboard shortcuts

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