remove deprecated metrics of scheduler
This commit is contained in:
		@@ -211,15 +211,12 @@ func (g *genericScheduler) Schedule(ctx context.Context, state *framework.CycleS
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	trace.Step("Running postfilter plugins done")
 | 
						trace.Step("Running postfilter plugins done")
 | 
				
			||||||
	metrics.DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPredicateEvalTime))
 | 
						metrics.DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPredicateEvalTime))
 | 
				
			||||||
	metrics.DeprecatedSchedulingAlgorithmPredicateEvaluationDuration.Observe(metrics.SinceInMicroseconds(startPredicateEvalTime))
 | 
					 | 
				
			||||||
	metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PredicateEvaluation).Observe(metrics.SinceInSeconds(startPredicateEvalTime))
 | 
						metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PredicateEvaluation).Observe(metrics.SinceInSeconds(startPredicateEvalTime))
 | 
				
			||||||
	metrics.DeprecatedSchedulingLatency.WithLabelValues(metrics.PredicateEvaluation).Observe(metrics.SinceInSeconds(startPredicateEvalTime))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	startPriorityEvalTime := time.Now()
 | 
						startPriorityEvalTime := time.Now()
 | 
				
			||||||
	// When only one node after predicate, just use it.
 | 
						// When only one node after predicate, just use it.
 | 
				
			||||||
	if len(filteredNodes) == 1 {
 | 
						if len(filteredNodes) == 1 {
 | 
				
			||||||
		metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
							metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
				
			||||||
		metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationDuration.Observe(metrics.SinceInMicroseconds(startPriorityEvalTime))
 | 
					 | 
				
			||||||
		return ScheduleResult{
 | 
							return ScheduleResult{
 | 
				
			||||||
			SuggestedHost:  filteredNodes[0].Name,
 | 
								SuggestedHost:  filteredNodes[0].Name,
 | 
				
			||||||
			EvaluatedNodes: 1 + len(filteredNodesStatuses),
 | 
								EvaluatedNodes: 1 + len(filteredNodesStatuses),
 | 
				
			||||||
@@ -233,9 +230,7 @@ func (g *genericScheduler) Schedule(ctx context.Context, state *framework.CycleS
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
						metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration.Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
				
			||||||
	metrics.DeprecatedSchedulingAlgorithmPriorityEvaluationDuration.Observe(metrics.SinceInMicroseconds(startPriorityEvalTime))
 | 
					 | 
				
			||||||
	metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PriorityEvaluation).Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
						metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PriorityEvaluation).Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
				
			||||||
	metrics.DeprecatedSchedulingLatency.WithLabelValues(metrics.PriorityEvaluation).Observe(metrics.SinceInSeconds(startPriorityEvalTime))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	host, err := g.selectHost(priorityList)
 | 
						host, err := g.selectHost(priorityList)
 | 
				
			||||||
	trace.Step("Prioritizing done")
 | 
						trace.Step("Prioritizing done")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,8 +30,6 @@ const (
 | 
				
			|||||||
	SchedulerSubsystem = "scheduler"
 | 
						SchedulerSubsystem = "scheduler"
 | 
				
			||||||
	// DeprecatedSchedulingDurationName - scheduler duration metric name which is deprecated
 | 
						// DeprecatedSchedulingDurationName - scheduler duration metric name which is deprecated
 | 
				
			||||||
	DeprecatedSchedulingDurationName = "scheduling_duration_seconds"
 | 
						DeprecatedSchedulingDurationName = "scheduling_duration_seconds"
 | 
				
			||||||
	// DeprecatedSchedulingLatencyName - scheduler latency metric name which is deprecated
 | 
					 | 
				
			||||||
	DeprecatedSchedulingLatencyName = "scheduling_latency_seconds"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// OperationLabel - operation label name
 | 
						// OperationLabel - operation label name
 | 
				
			||||||
	OperationLabel = "operation"
 | 
						OperationLabel = "operation"
 | 
				
			||||||
@@ -76,19 +74,6 @@ var (
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
		[]string{OperationLabel},
 | 
							[]string{OperationLabel},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedSchedulingLatency = metrics.NewSummaryVec(
 | 
					 | 
				
			||||||
		&metrics.SummaryOpts{
 | 
					 | 
				
			||||||
			Subsystem: SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:      DeprecatedSchedulingLatencyName,
 | 
					 | 
				
			||||||
			Help:      "Scheduling latency in seconds split by sub-parts of the scheduling operation",
 | 
					 | 
				
			||||||
			// Make the sliding window of 5h.
 | 
					 | 
				
			||||||
			// TODO: The value for this should be based on some SLI definition (long term).
 | 
					 | 
				
			||||||
			MaxAge:            5 * time.Hour,
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		[]string{OperationLabel},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	E2eSchedulingLatency = metrics.NewHistogram(
 | 
						E2eSchedulingLatency = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      SchedulerSubsystem,
 | 
								Subsystem:      SchedulerSubsystem,
 | 
				
			||||||
@@ -98,16 +83,6 @@ var (
 | 
				
			|||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel: metrics.ALPHA,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedE2eSchedulingLatency = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "e2e_scheduling_latency_microseconds",
 | 
					 | 
				
			||||||
			Help:              "E2e scheduling latency in microseconds (scheduling algorithm + binding)",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	SchedulingAlgorithmLatency = metrics.NewHistogram(
 | 
						SchedulingAlgorithmLatency = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      SchedulerSubsystem,
 | 
								Subsystem:      SchedulerSubsystem,
 | 
				
			||||||
@@ -117,16 +92,6 @@ var (
 | 
				
			|||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel: metrics.ALPHA,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedSchedulingAlgorithmLatency = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "scheduling_algorithm_latency_microseconds",
 | 
					 | 
				
			||||||
			Help:              "Scheduling algorithm latency in microseconds",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration = metrics.NewHistogram(
 | 
						DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
								Subsystem:         SchedulerSubsystem,
 | 
				
			||||||
@@ -137,16 +102,6 @@ var (
 | 
				
			|||||||
			DeprecatedVersion: "1.18.0",
 | 
								DeprecatedVersion: "1.18.0",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedSchedulingAlgorithmPredicateEvaluationDuration = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "scheduling_algorithm_predicate_evaluation",
 | 
					 | 
				
			||||||
			Help:              "Scheduling algorithm predicate evaluation duration in microseconds",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration = metrics.NewHistogram(
 | 
						DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
								Subsystem:         SchedulerSubsystem,
 | 
				
			||||||
@@ -157,16 +112,6 @@ var (
 | 
				
			|||||||
			DeprecatedVersion: "1.18.0",
 | 
								DeprecatedVersion: "1.18.0",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedSchedulingAlgorithmPriorityEvaluationDuration = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "scheduling_algorithm_priority_evaluation",
 | 
					 | 
				
			||||||
			Help:              "Scheduling algorithm priority evaluation duration in microseconds",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	SchedulingAlgorithmPreemptionEvaluationDuration = metrics.NewHistogram(
 | 
						SchedulingAlgorithmPreemptionEvaluationDuration = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      SchedulerSubsystem,
 | 
								Subsystem:      SchedulerSubsystem,
 | 
				
			||||||
@@ -176,16 +121,6 @@ var (
 | 
				
			|||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel: metrics.ALPHA,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "scheduling_algorithm_preemption_evaluation",
 | 
					 | 
				
			||||||
			Help:              "Scheduling algorithm preemption evaluation duration in microseconds",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	BindingLatency = metrics.NewHistogram(
 | 
						BindingLatency = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      SchedulerSubsystem,
 | 
								Subsystem:      SchedulerSubsystem,
 | 
				
			||||||
@@ -195,16 +130,6 @@ var (
 | 
				
			|||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel: metrics.ALPHA,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	DeprecatedBindingLatency = metrics.NewHistogram(
 | 
					 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
					 | 
				
			||||||
			Subsystem:         SchedulerSubsystem,
 | 
					 | 
				
			||||||
			Name:              "binding_latency_microseconds",
 | 
					 | 
				
			||||||
			Help:              "Binding latency in microseconds",
 | 
					 | 
				
			||||||
			Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
					 | 
				
			||||||
			StabilityLevel:    metrics.ALPHA,
 | 
					 | 
				
			||||||
			DeprecatedVersion: "1.14.0",
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
	PreemptionVictims = metrics.NewHistogram(
 | 
						PreemptionVictims = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem: SchedulerSubsystem,
 | 
								Subsystem: SchedulerSubsystem,
 | 
				
			||||||
@@ -307,19 +232,12 @@ var (
 | 
				
			|||||||
	metricsList = []metrics.Registerable{
 | 
						metricsList = []metrics.Registerable{
 | 
				
			||||||
		scheduleAttempts,
 | 
							scheduleAttempts,
 | 
				
			||||||
		DeprecatedSchedulingDuration,
 | 
							DeprecatedSchedulingDuration,
 | 
				
			||||||
		DeprecatedSchedulingLatency,
 | 
					 | 
				
			||||||
		E2eSchedulingLatency,
 | 
							E2eSchedulingLatency,
 | 
				
			||||||
		DeprecatedE2eSchedulingLatency,
 | 
					 | 
				
			||||||
		SchedulingAlgorithmLatency,
 | 
							SchedulingAlgorithmLatency,
 | 
				
			||||||
		DeprecatedSchedulingAlgorithmLatency,
 | 
					 | 
				
			||||||
		BindingLatency,
 | 
							BindingLatency,
 | 
				
			||||||
		DeprecatedBindingLatency,
 | 
					 | 
				
			||||||
		DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration,
 | 
							DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration,
 | 
				
			||||||
		DeprecatedSchedulingAlgorithmPredicateEvaluationDuration,
 | 
					 | 
				
			||||||
		DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration,
 | 
							DeprecatedSchedulingAlgorithmPriorityEvaluationSecondsDuration,
 | 
				
			||||||
		DeprecatedSchedulingAlgorithmPriorityEvaluationDuration,
 | 
					 | 
				
			||||||
		SchedulingAlgorithmPreemptionEvaluationDuration,
 | 
							SchedulingAlgorithmPreemptionEvaluationDuration,
 | 
				
			||||||
		DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration,
 | 
					 | 
				
			||||||
		PreemptionVictims,
 | 
							PreemptionVictims,
 | 
				
			||||||
		PreemptionAttempts,
 | 
							PreemptionAttempts,
 | 
				
			||||||
		pendingPods,
 | 
							pendingPods,
 | 
				
			||||||
@@ -370,7 +288,6 @@ func UnschedulablePods() metrics.GaugeMetric {
 | 
				
			|||||||
// Reset resets metrics
 | 
					// Reset resets metrics
 | 
				
			||||||
func Reset() {
 | 
					func Reset() {
 | 
				
			||||||
	DeprecatedSchedulingDuration.Reset()
 | 
						DeprecatedSchedulingDuration.Reset()
 | 
				
			||||||
	DeprecatedSchedulingLatency.Reset()
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// SinceInMicroseconds gets the time since the specified start in microseconds.
 | 
					// SinceInMicroseconds gets the time since the specified start in microseconds.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -540,9 +540,7 @@ func (sched *Scheduler) bind(ctx context.Context, assumed *v1.Pod, targetNode st
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	metrics.BindingLatency.Observe(metrics.SinceInSeconds(bindingStart))
 | 
						metrics.BindingLatency.Observe(metrics.SinceInSeconds(bindingStart))
 | 
				
			||||||
	metrics.DeprecatedBindingLatency.Observe(metrics.SinceInMicroseconds(bindingStart))
 | 
					 | 
				
			||||||
	metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.Binding).Observe(metrics.SinceInSeconds(bindingStart))
 | 
						metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.Binding).Observe(metrics.SinceInSeconds(bindingStart))
 | 
				
			||||||
	metrics.DeprecatedSchedulingLatency.WithLabelValues(metrics.Binding).Observe(metrics.SinceInSeconds(bindingStart))
 | 
					 | 
				
			||||||
	sched.Recorder.Eventf(assumed, nil, v1.EventTypeNormal, "Scheduled", "Binding", "Successfully assigned %v/%v to %v", assumed.Namespace, assumed.Name, targetNode)
 | 
						sched.Recorder.Eventf(assumed, nil, v1.EventTypeNormal, "Scheduled", "Binding", "Successfully assigned %v/%v to %v", assumed.Namespace, assumed.Name, targetNode)
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -585,9 +583,7 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
 | 
				
			|||||||
				sched.preempt(schedulingCycleCtx, state, fwk, pod, fitError)
 | 
									sched.preempt(schedulingCycleCtx, state, fwk, pod, fitError)
 | 
				
			||||||
				metrics.PreemptionAttempts.Inc()
 | 
									metrics.PreemptionAttempts.Inc()
 | 
				
			||||||
				metrics.SchedulingAlgorithmPreemptionEvaluationDuration.Observe(metrics.SinceInSeconds(preemptionStartTime))
 | 
									metrics.SchedulingAlgorithmPreemptionEvaluationDuration.Observe(metrics.SinceInSeconds(preemptionStartTime))
 | 
				
			||||||
				metrics.DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration.Observe(metrics.SinceInMicroseconds(preemptionStartTime))
 | 
					 | 
				
			||||||
				metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PreemptionEvaluation).Observe(metrics.SinceInSeconds(preemptionStartTime))
 | 
									metrics.DeprecatedSchedulingDuration.WithLabelValues(metrics.PreemptionEvaluation).Observe(metrics.SinceInSeconds(preemptionStartTime))
 | 
				
			||||||
				metrics.DeprecatedSchedulingLatency.WithLabelValues(metrics.PreemptionEvaluation).Observe(metrics.SinceInSeconds(preemptionStartTime))
 | 
					 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			// Pod did not fit anywhere, so it is counted as a failure. If preemption
 | 
								// Pod did not fit anywhere, so it is counted as a failure. If preemption
 | 
				
			||||||
			// succeeds, the pod should get counted as a success the next time we try to
 | 
								// succeeds, the pod should get counted as a success the next time we try to
 | 
				
			||||||
@@ -600,7 +596,6 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	metrics.SchedulingAlgorithmLatency.Observe(metrics.SinceInSeconds(start))
 | 
						metrics.SchedulingAlgorithmLatency.Observe(metrics.SinceInSeconds(start))
 | 
				
			||||||
	metrics.DeprecatedSchedulingAlgorithmLatency.Observe(metrics.SinceInMicroseconds(start))
 | 
					 | 
				
			||||||
	// Tell the cache to assume that a pod now is running on a given node, even though it hasn't been bound yet.
 | 
						// Tell the cache to assume that a pod now is running on a given node, even though it hasn't been bound yet.
 | 
				
			||||||
	// This allows us to keep scheduling without waiting on binding to occur.
 | 
						// This allows us to keep scheduling without waiting on binding to occur.
 | 
				
			||||||
	assumedPodInfo := podInfo.DeepCopy()
 | 
						assumedPodInfo := podInfo.DeepCopy()
 | 
				
			||||||
@@ -698,7 +693,6 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		err := sched.bind(bindingCycleCtx, assumedPod, scheduleResult.SuggestedHost, state)
 | 
							err := sched.bind(bindingCycleCtx, assumedPod, scheduleResult.SuggestedHost, state)
 | 
				
			||||||
		metrics.E2eSchedulingLatency.Observe(metrics.SinceInSeconds(start))
 | 
							metrics.E2eSchedulingLatency.Observe(metrics.SinceInSeconds(start))
 | 
				
			||||||
		metrics.DeprecatedE2eSchedulingLatency.Observe(metrics.SinceInMicroseconds(start))
 | 
					 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			metrics.PodScheduleErrors.Inc()
 | 
								metrics.PodScheduleErrors.Inc()
 | 
				
			||||||
			// trigger un-reserve plugins to clean up state associated with the reserved Pod
 | 
								// trigger un-reserve plugins to clean up state associated with the reserved Pod
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user