cadvisor 有两个指标container_cpu_cfs_throttled_seconds_total和container_cpu_cfs_throttled_periods_total
我很困惑这是什么意思..
我找到了两个解释:</p>
容器以 cpu 限制运行,当容器 cpu 超过限制时,容器将被“节流”并添加时间到 container_cpu_cfs_throttled_seconds_total
that means : (1). only container cpu over limit, rate(container_cpu_cfs_throttled_seconds_total) > 0. (2). we can use this metrics to alert container cpu over limit ...
当主机处于沉重的 cpu 压力时,它将使用 POD QoS(保证 > Burstable > Best-Effort)“限制”容器......
that means : (1). container_cpu_cfs_throttled_seconds_total will add has no relate with how many cpu container used and cpu limit .. (2). this metrics can not to alert container cpu over limit ..