mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8452: Exclude non-routing hosts from getting rebalanced as part of agent LB
For agent LB, only routing hosts needs to be considered
This commit is contained in:
parent
ac2bccd2a2
commit
5f66679df3
@ -61,6 +61,7 @@ public class ClusterBasedAgentLoadBalancerPlanner extends AdapterBase implements
|
||||
|
||||
sc = QueryBuilder.create(HostVO.class);
|
||||
sc.and(sc.entity().getManagementServerId(), Op.EQ, msId);
|
||||
sc.and(sc.entity().getType(), Op.EQ, Host.Type.Routing);
|
||||
sc.and(sc.entity().getStatus(), Op.EQ, Status.Up);
|
||||
List<HostVO> directHosts = sc.list();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user