In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Calculation of Pod memory utilization
Metrics monitoring initiated by docker-cadvisor uses container_memory_rss
Metrics monitoring obtained by starting prometheus in k8s uses container_memory_usage_bytes or container_memory_working_set_bytes
The calculation of Pod memory usage is much simpler. You can simply divide the actual memory usage by the memory usage limit:
Cadvisor container memory utilization is greater than 90%
Sum by (name, id, job, node) (container_memory_rss {imagination = "", job= "ali-prod-executor-cadvisor"}) / sum by (name, id, job, node) (container_spec_memory_limit_bytes {imagination = "", job= "ali-prod-executor-cadvisor"}) * 100! = + Inf > 80
K8s method 1
Avg by (pod_name) (container_memory_usage_bytes {podroomnameplates = "", imageframes ~ ". * pause-amd64:1031 |. * pause-amd64:3.0"} / container_spec_memory_limit_bytes {podroomnameplates = "", imageframes ~ ". * pause-amd64:1031 |. * pause-amd64:3.0"}) * 100 > 90
Method 2
Sum by (pod_name, namespace, job) (container_memory_working_set_bytes {imagewings = "", imageframes ~ "xxxxx.com/xxs/pause.+", joblies = "xxxd-executor-cadvisor"}) / sum by (pod_name, namespace, job) (container_spec_memory_limit_bytes {imageframes = "", imageframes ~ "reg.linkdoc-inc.com/ops/pause.+", jobstones = "ali-prod-executor-cadvisor"}) * 100! = + Inf > 90
CPU utilization of the container:
Sum by (pod_name, namespace, job) (rate (container_cpu_usage_seconds_total {imagehorse = ""} [1m])) / (sum by (pod_name, namespace, job) (container_spec_cpu_quota {imagehorse = ""} / 100000)) * 100 > 90
Container inbound bandwidth is greater than 50m
Sum by (namespace,job,pod_name) (irate (container_network_receive_bytes_total {imagination = ""} [3m])) / 1024 / 1024 > 50
Container outbound bandwidth is greater than 50m
Sum by (namespace,job,pod_name) (irate (container_network_transmit_bytes_total {imagination = ""} [1m])) / 1024 / 1024 > 50
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.