Skip to content

Commit

Permalink
[vmware, ssvm] Scale down of ssvm (#6042)
Browse files Browse the repository at this point in the history
* [vmware, ssvm] Scale down of ssvm

* address comments - change variable name
  • Loading branch information
Pearl1594 authored Feb 25, 2022
1 parent 027e603 commit a8cc261
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,8 @@ public ConfigKey<?>[] getConfigKeys() {
SecStorageMaxMigrateSessions,
MaxDataMigrationWaitTime,
DiskProvisioningStrictness,
PreferredStoragePool
PreferredStoragePool,
SecStorageVMAutoScaleDown
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ else if (!copyCmdsInPipeline.isEmpty() && copyCmdsInPipeline.size() >= halfLimi
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);
}

Expand Down

0 comments on commit a8cc261

Please sign in to comment.