Skip to content

Commit d466eca

Browse files
Likitha Shettyyadvr
authored andcommitted
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 bc235ed) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 0e4d91a commit d466eca

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎agent/src/com/cloud/agent/AgentShell.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ protected boolean parseCommand(final String[] args) throws ConfigurationExceptio
236236
}
237237

238238
_workers = NumberUtils.toInt(workers, 5);
239+
if (_workers <= 0) {
240+
_workers = 5;
241+
}
239242

240243
if (host == null) {
241244
host = getProperty(null, "host");

‎services/secondary-storage/controller/src/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,8 @@ public boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, Depl
10511051

10521052
buf.append(" guid=").append(profile.getVirtualMachine().getHostName());
10531053

1054+
buf.append(" workers=").append(_configDao.getValue("workers"));
1055+
10541056
if (_configDao.isPremium()) {
10551057
s_logger.debug("VmWare hypervisor configured, telling the ssvm to load the PremiumSecondaryStorageResource");
10561058
buf.append(" resource=com.cloud.storage.resource.PremiumSecondaryStorageResource");

0 commit comments

Comments
 (0)