Merge pull request #106412 from ahg-g/ahg-expire

Increase the duration to expire an assumed pod
This commit is contained in:
Kubernetes Prow Robot 2021-11-15 16:23:51 -08:00 committed by GitHub
commit 16227cf09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,9 @@ const (
SchedulerError = "SchedulerError" SchedulerError = "SchedulerError"
// Percentage of plugin metrics to be sampled. // Percentage of plugin metrics to be sampled.
pluginMetricsSamplePercent = 10 pluginMetricsSamplePercent = 10
// Duration the scheduler will wait before expiring an assumed pod.
// See issue #106361 for more details about this parameter and its value.
durationToExpireAssumedPod = 15 * time.Minute
) )
// Scheduler watches for new unscheduled pods. It attempts to find // Scheduler watches for new unscheduled pods. It attempts to find
@ -228,7 +231,7 @@ func New(client clientset.Interface,
} }
options.profiles = cfg.Profiles options.profiles = cfg.Profiles
} }
schedulerCache := internalcache.New(30*time.Second, stopEverything) schedulerCache := internalcache.New(durationToExpireAssumedPod, stopEverything)
registry := frameworkplugins.NewInTreeRegistry() registry := frameworkplugins.NewInTreeRegistry()
if err := registry.Merge(options.frameworkOutOfTreeRegistry); err != nil { if err := registry.Merge(options.frameworkOutOfTreeRegistry); err != nil {