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;
|
||||
long effectiveCpu = (long) so.getCpu() * so.getSpeed();
|
||||
totalAdditionalCpuUnits += effectiveCpu * additional;
|
||||
totalAdditionalCpuUnits += so.getCpu() * additional;
|
||||
totalAdditionalRamMb += so.getRamSize() * additional;
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue