k8s中如何實現(xiàn)SchedulingLatency 指標查看,很多新手對此不是很清楚,為了幫助大家解決這個難題,下面小編將為大家詳細講解,有這方面需求的人可以來學習下,希望你能有所收獲。
讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:域名注冊、網(wǎng)絡(luò)空間、營銷軟件、網(wǎng)站建設(shè)、石龍網(wǎng)站維護、網(wǎng)站推廣。1.1.metrics.go指標定義pkg/scheduler/metrics/metrics.go
SchedulingLatency = prometheus.NewSummaryVec(
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)度被分割為子組件的操作時間的和
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.sched.schedule
2.sched.assumeVolumes
3.sched.assume
4.sched.bindVolumes
5.sched.Cache
6.sched.bind
1.1.generic_scheduler.go調(diào)度算法實現(xiàn)1.1.1.pkg/scheduler/core/generic_scheduler.go看完上述內(nèi)容是否對您有幫助呢?如果還想對相關(guān)知識有進一步的了解或閱讀更多相關(guān)文章,請關(guān)注箭頭云行業(yè)資訊頻道,感謝您對箭頭云的支持。