prometheus.SummaryOpts{
Subsystem: SchedulerSubsystem,
Name: SchedulingLatencyName,
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,
},
[]string{OperationLabel},
)
第64行:Scheduling latency in seconds split by sub-parts of the scheduling operation
一次調度被分割為子組件的操作時間的和
1.1. scheduler.go調度入口1.1.1. pkg/scheduler/scheduler.go
// Run begins watching and scheduling. It waits for cache to be synced, then starts a goroutine and returns immediately.
func (sched *Scheduler) Run() {
if !sched.config.WaitForCacheSync() {
return
}
go wait.Until(sched.scheduleOne, 0, sched.config.StopEverything)
}
1.1.1. 核心調度邏輯順序
1. sched.schedule
2. sched.assumeVolumes
3. sched.assume
4. sched.bindVolumes
5. sched.Cache
6. sched.bind
1.1. generic_scheduler.go調度算法實現1.1.1. pkg/scheduler/core/generic_scheduler.go
看完上述內容是否對您有幫助呢?如果還想對相關知識有進一步的了解或閱讀更多相關文章,請關注箭頭云行業資訊頻道,感謝您對箭頭云的支持。
更多關于云服務器,域名注冊,虛擬主機的問題,請訪問三五互聯官網:m.shinetop.cn