| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| verify(clusteredAgentManagerImpl).loadDirectlyConnectedHost(hostVO, false); | ||
| } | ||
|
|
||
| // https://github.com/apache/cloudstack/issues/9640 |
There was a problem hiding this comment.
| // https://github.com/apache/cloudstack/issues/9640 |
Sorry, something went wrong.
| // Indirectly connected agents (KVM hosts, SSVM, CPVM) dial in to a management server rather | ||
| // than being loaded directly by it, so this management server can't hand the host to a | ||
| // specific future owner the way it can for direct agents. Disconnect it instead: the agent | ||
| // reconnects on its own using its indirect agent LB configuration (the "host" global setting | ||
| // and indirect.agent.lb.algorithm), which is what actually determines its next owner. |
There was a problem hiding this comment.
evaluate and redact comment
Sorry, something went wrong.
| // Indirectly connected agents (KVM hosts, SSVM, CPVM) dial in to a management server rather than | ||
| // being loaded directly by it, so they must be disconnected (and left to reconnect on their own) | ||
| // instead of going through the direct-agent rebalance dance that expects a ClusteredDirectAgentAttache. |
There was a problem hiding this comment.
| // Indirectly connected agents (KVM hosts, SSVM, CPVM) dial in to a management server rather than | |
| // being loaded directly by it, so they must be disconnected (and left to reconnect on their own) | |
| // instead of going through the direct-agent rebalance dance that expects a ClusteredDirectAgentAttache. |
Sorry, something went wrong.
| final AgentAttache attache = findAttache(hostId); | ||
| if (attache != null && !(attache instanceof ClusteredDirectAgentAttache)) { | ||
| // Indirectly connected agents (KVM hosts, SSVM, CPVM) dial in to a management server rather | ||
| // than being loaded directly by it, so this management server can't hand the host to a | ||
| // specific future owner the way it can for direct agents. Disconnect it instead: the agent | ||
| // reconnects on its own using its indirect agent LB configuration (the "host" global setting | ||
| // and indirect.agent.lb.algorithm), which is what actually determines its next owner. | ||
| logger.debug("Host id={} ({}) is an indirectly connected agent; disconnecting it so it reconnects and picks a management server " + | ||
| "using its own load balancing configuration", hostId, attache); | ||
| result = handleDisconnectWithoutInvestigation(attache, Event.AgentDisconnected, true, true); | ||
| finishRebalance(hostId, futureOwnerId, result ? Event.RebalanceCompleted : Event.RebalanceFailed); | ||
| return result; | ||
| } | ||
|
|
There was a problem hiding this comment.
new method, move comment to javadoc
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files @@ Coverage Diff @@
## main #14001 +/- ##
=============================================
- Coverage 19.73% 3.41% -16.33%
=============================================
Files 6371 487 -5884
Lines 575784 41863 -533921
Branches 70478 7912 -62566
=============================================
- Hits 113644 1429 -112215
+ Misses 449788 40234 -409554
+ Partials 12352 200 -12152
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
@nvazquez , can you have a look at this and discuss if needed? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
This PR relates to agent rebalancing on MSses see #9640 but applies to atachees .
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?