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'.

(cherry picked from commit bc235ed5eb0f88c3c62542a3e06bdc28c7b49eac)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Likitha Shetty 2015-01-06 15:33:47 +05:30 committed by Rohit Yadav
parent 0e4d91aa91
commit d466ecaf7a
2 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,9 @@ public class AgentShell implements IAgentShell, Daemon {
}
_workers = NumberUtils.toInt(workers, 5);
if (_workers <= 0) {
_workers = 5;
}
if (host == null) {
host = getProperty(null, "host");

View File

@ -1051,6 +1051,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");