cadvisor 有两个指标container_cpu_cfs_throttled_seconds_total和container_cpu_cfs_throttled_periods_total
我很困惑这是什么意思..
我找了两个解释一下?
容器以 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 ...
Run Code Online (Sandbox Code Playgroud)当主机处于沉重的 cpu 压力下时,它将使用 POD QoS(保证 > 突发 > 尽力而为)“节流”容器......
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 ..
Run Code Online (Sandbox Code Playgroud)