前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >k8s| SchedulingLatency 指标查看

k8s| SchedulingLatency 指标查看

作者头像
heidsoft
发布2019-07-08 13:27:24
6690
发布2019-07-08 13:27:24
举报
文章被收录于专栏:云计算与大数据

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

一次调度被分割为子组件的操作时间的和

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

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2019-07-02,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 云数智圈 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.1. metrics.go指标定义
  • 1.1. scheduler.go调度入口
    • 1.1.1. pkg/scheduler/scheduler.go
      • 1.1.1. 核心调度逻辑顺序
      • 1.1. generic_scheduler.go调度算法实现
        • 1.1.1. pkg/scheduler/core/generic_scheduler.go
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档