cdp

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// refer to issue https://github.com/volcano-sh/volcano/issues/2075,
	// plugin cdp means cooldown protection, related to elastic scheduler,
	// when we need to enable elastic training or serving,
	// preemptible job's pods can be preempted or back to running repeatedly,
	// if no cooldown protection set, these pods can be preempted again after they just started for a short time,
	// this may cause service stability dropped.
	// cdp plugin here is to ensure vcjob's pods cannot be preempted within cooldown protection conditions.
	// currently cdp plugin only support cooldown time protection.
	PluginName = "cdp"
)

Variables

This section is empty.

Functions

func New

func New(arguments framework.Arguments) framework.Plugin

New return CooldownProtectionPlugin

Types

type CooldownProtectionPlugin

type CooldownProtectionPlugin struct {
}

func (*CooldownProtectionPlugin) Name

Name implements framework.Plugin

func (*CooldownProtectionPlugin) OnSessionClose

func (*CooldownProtectionPlugin) OnSessionClose(ssn *framework.Session)

OnSessionClose implements framework.Plugin

func (*CooldownProtectionPlugin) OnSessionOpen

func (sp *CooldownProtectionPlugin) OnSessionOpen(ssn *framework.Session)

OnSessionOpen implements framework.Plugin

Jump to

Keyboard shortcuts

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