CLOUDSTACK-9944: In Cluster Management Server, Sometimes hosts stays in disconnected state (#2138)

In clustered management server setup on simultaneous restart of management server, sometimes hosts stays in disconnected state.
This commit is contained in:
SowjanyaPatha 2017-08-04 02:04:23 +05:30 committed by Rohit Yadav
parent 597df24b53
commit 9fe5630c71

View File

@ -167,6 +167,7 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements Clust
// Schedule tasks for agent rebalancing
if (isAgentRebalanceEnabled()) {
cleanupTransferMap(_nodeId);
s_transferExecutor.scheduleAtFixedRate(getAgentRebalanceScanTask(), 60000, 60000, TimeUnit.MILLISECONDS);
s_transferExecutor.scheduleAtFixedRate(getTransferScanTask(), 60000, ClusteredAgentRebalanceService.DEFAULT_TRANSFER_CHECK_INTERVAL, TimeUnit.MILLISECONDS);
}