mirror of https://github.com/apache/cloudstack.git
This refactors a ResourceManager::listAvailHypervisorInZone method that should return unique hypervisors for which existing hosts are Up and processed. We can approximate this by assuming that those hosts would have setup their hypervisor-specific systemvmtemplates. In a given environment there wouldn't be thousands of systemvmtemplates, but can have thousands of hosts. So, instead of scanning the entire cloud.host table, we can make calculate guess by returning unique hypervisors of systemvm templates which are ready. This method was used in ::processConnect() when an agent joins, to speed up its handling. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> |
||
|---|---|---|
| .. | ||
| src/main | ||
| pom.xml | ||