atris commented on a change in pull request #96: URL: https://github.com/apache/solr/pull/96#discussion_r643437744
########## File path: solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java ########## @@ -110,6 +113,27 @@ public double getCpuUsageThreshold() { } protected double calculateLiveCPUUsage() { - return operatingSystemMXBean.getSystemLoadAverage(); + Metric metric = this.core + .getCoreContainer() + .getMetricManager() + .registry("solr.jvm") + .getMetrics() + .get("os.systemCpuLoad"); Review comment: The load average represents CPU usage and resources waiting for CPU - - so the job queue will contribute to the load average. AFAIK, load average will always include CPU and CPU dependent tasks, which is a good representation of the load on the system. Nevertheless, I am not a stickler for the naming as long as the documentation is correct -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org