mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5485. Cannot process more than 5 concurrent snapshots.
Number of threads on SSVM agent for connection with MS (Agent->NioClient) should be configurable using global config 'workers'.
This commit is contained in:
parent
3cba1c41fb
commit
bc235ed5eb
|
|
@ -229,6 +229,9 @@ public class AgentShell implements IAgentShell, Daemon {
|
|||
}
|
||||
|
||||
_workers = NumberUtils.toInt(workers, 5);
|
||||
if (_workers <= 0) {
|
||||
_workers = 5;
|
||||
}
|
||||
|
||||
if (host == null) {
|
||||
host = getProperty(null, "host");
|
||||
|
|
|
|||
|
|
@ -1052,6 +1052,8 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements Secondar
|
|||
|
||||
buf.append(" guid=").append(profile.getVirtualMachine().getHostName());
|
||||
|
||||
buf.append(" workers=").append(_configDao.getValue("workers"));
|
||||
|
||||
if (_configDao.isPremium()) {
|
||||
s_logger.debug("VmWare hypervisor configured, telling the ssvm to load the PremiumSecondaryStorageResource");
|
||||
buf.append(" resource=com.cloud.storage.resource.PremiumSecondaryStorageResource");
|
||||
|
|
|
|||
Loading…
Reference in New Issue