File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ func (sched *Scheduler) ScheduleOne(ctx context.Context) {
101
101
// Synchronously attempt to find a fit for the pod.
102
102
start := time .Now ()
103
103
state := framework .NewCycleState ()
104
+ // For the sake of performance, scheduler does not measure and export the scheduler_plugin_execution_duration metric
105
+ // for every plugin execution in each scheduling cycle. Instead it samples a portion of scheduling cycles - percentage
106
+ // determined by pluginMetricsSamplePercent. The line below helps to randomly pick appropriate scheduling cycles.
104
107
state .SetRecordPluginMetrics (rand .Intn (100 ) < pluginMetricsSamplePercent )
105
108
106
109
// Initialize an empty podsToActivate struct, which will be filled up by plugins or stay empty.
You can’t perform that action at this time.
0 commit comments