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
一次調(diào)度被分割為子組件的操作時(shí)間的和
1.1. scheduler.go調(diào)度入口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. 核心調(diào)度邏輯順序
1. sched.schedule
2. sched.assumeVolumes
3. sched.assume
4. sched.bindVolumes
5. sched.Cache
6. sched.bind
1.1. generic_scheduler.go調(diào)度算法實(shí)現(xiàn)1.1.1. pkg/scheduler/core/generic_scheduler.go
看完上述內(nèi)容是否對(duì)您有幫助呢?如果還想對(duì)相關(guān)知識(shí)有進(jìn)一步的了解或閱讀更多相關(guān)文章,請(qǐng)關(guān)注箭頭云行業(yè)資訊頻道,感謝您對(duì)箭頭云的支持。
更多關(guān)于云服務(wù)器,域名注冊(cè),虛擬主機(jī)的問題,請(qǐng)?jiān)L問西部數(shù)碼官網(wǎng):m.ps-sw.cn