apiVersion: v1
kind: Pod
metadata:
name: cpu-demo-05
namespace: yyj-cloud-dev
spec:
containers:
- name: cpu-demo-05
image: dockerhub.mandao.com/vish/stress
resources:
limits:
cpu: "0.5"
requests:
cpu: "0.5"
args:
- -cpus
- "2"
CPUThrottlingHigh
K8S 中的 CPUThrottlingHigh 到底是个什么鬼?
prometheus operator告警规则(一):你的cpu够用吗?
cpu限流重要指标
- container_cpu_cfs_periods_total:container生命周期中度过的cpu周期总数
- container_cpu_cfs_throttled_periods_total:container生命周期中度过的受限的cpu周期总数
- sum by (container, pod, namespace) (increase(container_cpu_cfs_throttled_periods_total{container!=””}[5m])) / sum by (container, pod, namespace) (increase(container_cpu_cfs_periods_total[5m])) > (25 / 100)