Skip to content

Commit 68f5fa5

Browse files
committed
Make the stuck-in-releasing-threshold 5m instead of 2m
Signed-off-by: davidLif <davidshani12@gmail.com>
1 parent e844134 commit 68f5fa5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/scheduler/app/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (s *ServerOption) AddFlags(fs *pflag.FlagSet) {
126126
fs.BoolVar(&s.AllowConsolidatingReclaim, "allow-consolidating-reclaim", true, "Do not count pipelined pods towards 'reclaimed' resources")
127127
fs.IntVar(&s.NumOfStatusRecordingWorkers, "num-of-status-recording-workers", defaultNumOfStatusRecordingWorkers, "specifies the max number of go routines spawned to update pod and podgroups conditions and events. Defaults to 5")
128128
fs.DurationVar(&s.GlobalDefaultStalenessGracePeriod, "default-staleness-grace-period", defaultStalenessGracePeriod, "Global default staleness grace period duration. Negative values means infinite. Defaults to 60s")
129-
fs.DurationVar(&s.StuckInReleasingThreshold, "stuck-in-releasing-threshold", constants.DefaultStuckInReleasingThreshold, "Duration after a Running pod's deletionTimestamp before its resources are excluded from pipelining. Defaults to 2m.")
129+
fs.DurationVar(&s.StuckInReleasingThreshold, "stuck-in-releasing-threshold", constants.DefaultStuckInReleasingThreshold, "Duration after a Running pod's deletionTimestamp before its resources are excluded from pipelining. Defaults to 5m.")
130130
fs.IntVar(&s.PluginServerPort, "plugin-server-port", 8081, "The port to bind for plugin server requests")
131131
fs.StringVar(&s.CPUWorkerNodeLabelKey, "cpu-worker-node-label-key", constants.DefaultCPUWorkerNodeLabelKey, "The label key for CPU worker nodes")
132132
fs.StringVar(&s.GPUWorkerNodeLabelKey, "gpu-worker-node-label-key", constants.DefaultGPUWorkerNodeLabelKey, "The label key for GPU worker nodes")

pkg/common/constants/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
DefaultKAIConfigSingeltonInstanceName = "kai-config"
2626
DefaultNodePoolLabelKey = "kai.scheduler/node-pool"
2727
DefaultRuntimeClassName = "nvidia"
28-
DefaultStuckInReleasingThreshold = 2 * time.Minute
28+
DefaultStuckInReleasingThreshold = 5 * time.Minute
2929

3030
ActionDefault = "default"
3131
ActionReclaim = "reclaim"

0 commit comments

Comments
 (0)