You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/11 09:56:34 UTC

[GitHub] [pulsar] czhfe opened a new issue #14662: About pulsar CPU usage problem

czhfe opened a new issue #14662:
URL: https://github.com/apache/pulsar/issues/14662


   **Describe the bug**
   The CPU utilization calculated by process_cpu_seconds_total, pulsar_lb_cpu_usage provided by pulsar and container metrics provided by kubernetes are inconsistent and vary greatly, which is the correct one? Why is there a difference?
   
   **Expressions for calculation of indicators**
   ```
   # process_cpu_seconds_totall
   irate(process_cpu_seconds_total{pod="pulsar-private-broker-0"}[5m])
   
   # pulsar_lb_cpu_usagel
   pulsar_lb_cpu_usage{pod="pulsar-private-broker-0"}
   
   # Container Metrics Metrics provided by kubernetes
   sum(irate(container_cpu_usage_seconds_total{pod="pulsar-private-broker-0"}[5m])) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{pod="pulsar-private-broker-0"}) by (pod)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org