Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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