mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Make global setting non-dynamic (#4505)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
4fb69e695c
commit
e4a504b084
@ -113,7 +113,7 @@ public interface StorageManager extends StorageService {
|
||||
"In second, timeout for download template to primary storage", false);
|
||||
|
||||
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", true, ConfigKey.Scope.Global);
|
||||
"The max number of concurrent copy command execution sessions that an SSVM can handle", false, 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);
|
||||
|
||||
@ -88,6 +88,7 @@ import com.cloud.utils.NumbersUtil;
|
||||
import com.cloud.utils.db.TransactionLegacy;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
import com.cloud.utils.net.Proxy;
|
||||
import com.cloud.vm.VirtualMachineManager;
|
||||
import com.cloud.vm.dao.SecondaryStorageVmDao;
|
||||
|
||||
public abstract class BaseImageStoreDriverImpl implements ImageStoreDriver {
|
||||
@ -344,7 +345,7 @@ public abstract class BaseImageStoreDriverImpl implements ImageStoreDriver {
|
||||
(srcdata.getType() == DataObjectType.VOLUME && destData.getType() == DataObjectType.VOLUME)) {
|
||||
|
||||
int nMaxExecutionMinutes = NumbersUtil.parseInt(configDao.getValue(Config.SecStorageCmdExecutionTimeMax.key()), 30);
|
||||
CopyCommand cmd = new CopyCommand(srcdata.getTO(), destData.getTO(), nMaxExecutionMinutes * 60 * 1000, true);
|
||||
CopyCommand cmd = new CopyCommand(srcdata.getTO(), destData.getTO(), nMaxExecutionMinutes * 60 * 1000, VirtualMachineManager.ExecuteInSequence.value());
|
||||
Answer answer = null;
|
||||
|
||||
// Select host endpoint such that the load is balanced out
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user