mirror of https://github.com/apache/cloudstack.git
[vmware, ssvm] Scale down of ssvm (#6042)
* [vmware, ssvm] Scale down of ssvm * address comments - change variable name
This commit is contained in:
parent
027e6030af
commit
a8cc261143
|
|
@ -143,6 +143,9 @@ public interface StorageManager extends StorageService {
|
|||
ConfigKey<Integer> SecStorageMaxMigrateSessions = new ConfigKey<Integer>("Advanced", Integer.class, "secstorage.max.migrate.sessions", "2",
|
||||
"The max number of concurrent copy command execution sessions that an SSVM can handle", false, ConfigKey.Scope.Global);
|
||||
|
||||
ConfigKey<Boolean> SecStorageVMAutoScaleDown = new ConfigKey<Boolean>("Advanced", Boolean.class, "secstorage.vm.auto.scale.down", "false",
|
||||
"Setting this to 'true' will auto scale down SSVMs", true, ConfigKey.Scope.Global);
|
||||
|
||||
ConfigKey<Integer> MaxDataMigrationWaitTime = new ConfigKey<Integer>("Advanced", Integer.class, "max.data.migration.wait.time", "15",
|
||||
"Maximum wait time for a data migration task before spawning a new SSVM", false, ConfigKey.Scope.Global);
|
||||
ConfigKey<Boolean> DiskProvisioningStrictness = new ConfigKey<Boolean>("Storage", Boolean.class, "disk.provisioning.type.strictness", "false",
|
||||
|
|
|
|||
|
|
@ -3331,7 +3331,8 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
SecStorageMaxMigrateSessions,
|
||||
MaxDataMigrationWaitTime,
|
||||
DiskProvisioningStrictness,
|
||||
PreferredStoragePool
|
||||
PreferredStoragePool,
|
||||
SecStorageVMAutoScaleDown
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,7 +184,9 @@ public class PremiumSecondaryStorageManagerImpl extends SecondaryStorageManagerI
|
|||
return new Pair<AfterScanAction, Object>(AfterScanAction.expand, SecondaryStorageVm.Role.commandExecutor);
|
||||
|
||||
}
|
||||
scaleDownSSVMOnLoad(alreadyRunning, activeCmds, copyCmdsInPipeline);
|
||||
if (StorageManager.SecStorageVMAutoScaleDown.value()) {
|
||||
scaleDownSSVMOnLoad(alreadyRunning, activeCmds, copyCmdsInPipeline);
|
||||
}
|
||||
return new Pair<AfterScanAction, Object>(AfterScanAction.nop, null);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue