You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.debug(String.format("This host utilizes cgroupv2 (as the max shares value is [%s]), thus, the VM requested shares of [%s] will be converted to " +
2800
-
"consider the host limits; the new CPU shares value is [%s].", hostCpuMaxCapacity, requestedCpuShares, updatedCpuShares));
2801
-
returnupdatedCpuShares;
2802
-
}
2803
-
LOGGER.debug(String.format("This host does not have a maximum CPU shares set; therefore, this host utilizes cgroupv1 and the VM requested CPU shares [%s] will not be " +
2804
-
"converted.", requestedCpuShares));
2803
+
2804
+
LOGGER.debug("This host utilizes cgroupv2 (as the max shares value is [{}]), thus, the VM requested shares of [{}] will be converted to " +
2805
+
"consider the host limits; the new CPU shares value is [{}].", hostCpuMaxCapacity, requestedCpuShares, updatedCpuShares);
2806
+
requestedCpuShares = updatedCpuShares;
2807
+
} else {
2808
+
LOGGER.debug("This host does not have a maximum CPU shares set; therefore, this host utilizes cgroupv1 and the VM requested CPU shares [{}] will not be " +
2809
+
"converted.", requestedCpuShares);
2810
+
}
2811
+
2812
+
/**
2813
+
* Libvirt < 9.1.0 enforces the same value range to both cgroupv1 and cgroupv2.
2814
+
* Therefore, if the shares value is determined to be outside of boundaries,
2815
+
* then bring it to the minimum or maximum allowed value.
0 commit comments