mirror of https://github.com/apache/cloudstack.git
CKS: fix resource limitation check on cpu when scale cks cluster (#12379)
This commit is contained in:
parent
3828a3b744
commit
036489b288
|
|
@ -1383,8 +1383,7 @@ public class KubernetesClusterManagerImpl extends ManagerBase implements Kuberne
|
||||||
}
|
}
|
||||||
|
|
||||||
totalAdditionalVms += additional;
|
totalAdditionalVms += additional;
|
||||||
long effectiveCpu = (long) so.getCpu() * so.getSpeed();
|
totalAdditionalCpuUnits += so.getCpu() * additional;
|
||||||
totalAdditionalCpuUnits += effectiveCpu * additional;
|
|
||||||
totalAdditionalRamMb += so.getRamSize() * additional;
|
totalAdditionalRamMb += so.getRamSize() * additional;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue