heesung-sn commented on code in PR #17820:
URL: https://github.com/apache/pulsar/pull/17820#discussion_r1333370312
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java:
##########
@@ -126,6 +147,10 @@ public static double getTotalCpuLimit(boolean
isCGroupsEnabled) {
if (quota > 0) {
return 100.0 * quota / period;
}
+ int totalCpuCount = getTotalCpuCount();
Review Comment:
Actually, java 17 tracks container-aware resource usage. I think we just
need to read jvm cpu limit and load if the jvm already provides the
container-aware cpu limit and load.
Reference:
https://developers.redhat.com/articles/2022/04/19/java-17-whats-new-openjdks-container-awareness
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]