Change:
We observed degradation in scheduling throughput, putting it under 100 pods/s. Respective pprof of kube-scheduler points it to ! /sig scheduling /kind regression 100 pods/node n/a No response <details</details<details</details<details</details<details</details<details</details<details</details
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the label and provide further guidance. The label can be by org members by writing in a comment. <detailsInstructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
/cc
/sig scalability
Thanks for noticing it /assign
just to confirm this bug is present only in 1.27 ( introduced with pluginevaluationtotal metric) , isn't it ?
Exactly, 1.27+ (so the current master as well) to be specific.

Discussion:
options.captureProfile(outputProfile) } <ins> // Cache metric streams for prefilter and filter plugins. for i, pl := range f.preFilterPlugins { f.preFilterPlugins[i] = &instrumentedPreFilterPlugin{ PreFilterPlugin: f.preFilterPlugins[i], metric:          metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), metrics.PreFilter, f.profileName), } } for i, pl := range f.filterPlugins { f.filterPlugins[i] = &instrumentedFilterPlugin{ FilterPlugin: f.filterPlugins[i], metric:       metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), metrics.Filter, f.profileName), } } </ins> return f, nil }

skipPlugins.Insert(pl.Name()) continue } <del> metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), metrics.PreFilter, f.profileName).Inc() </del> if !s.IsSuccess() { s.SetFailedPlugin(pl.Name()) if s.IsUnschedulable() {

if state.SkipFilterPlugins.Has(pl.Name()) { continue } <del> metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), metrics.Filter, f.profileName).Inc() </del> if status := f.runFilterPlugin(ctx, pl, state, pod, nodeInfo); !status.IsSuccess() { if !status.IsUnschedulable() { // Filter plugins are not supposed to return any status other than

<ins> /* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package runtime import ( "context" v1 "k8s.io/api/core/v1" compbasemetrics "k8s.io/component-base/metrics" "k8s.io/kubernetes/pkg/scheduler/framework" ) type instrumentedFilterPlugin struct { framework.FilterPlugin metric compbasemetrics.CounterMetric } var _ framework.FilterPlugin = &instrumentedFilterPlugin{} func (p *instrumentedFilterPlugin) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { p.metric.Inc() return p.FilterPlugin.Filter(ctx, state, pod, nodeInfo) } type instrumentedPreFilterPlugin struct { framework.PreFilterPlugin metric compbasemetrics.CounterMetric } var _ framework.PreFilterPlugin = &instrumentedPreFilterPlugin{} func (p *instrumentedPreFilterPlugin) PreFilter(ctx context.Context, state *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) { result, status := p.PreFilterPlugin.PreFilter(ctx, state, pod) if !status.IsSkip() { p.metric.Inc() } return result, status } </ins>