Skip to content

Commit 9fe5630

Browse files
SowjanyaPathayadvr
authored andcommitted
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.
1 parent 597df24 commit 9fe5630

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public boolean start() {
167167

168168
// Schedule tasks for agent rebalancing
169169
if (isAgentRebalanceEnabled()) {
170+
cleanupTransferMap(_nodeId);
170171
s_transferExecutor.scheduleAtFixedRate(getAgentRebalanceScanTask(), 60000, 60000, TimeUnit.MILLISECONDS);
171172
s_transferExecutor.scheduleAtFixedRate(getTransferScanTask(), 60000, ClusteredAgentRebalanceService.DEFAULT_TRANSFER_CHECK_INTERVAL, TimeUnit.MILLISECONDS);
172173
}

0 commit comments

Comments
 (0)