In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.