cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rashmi Dixit <>
Subject Metrics UI - Incorrect metrics data for zone/cluster
Date Thu, 12 May 2016 04:42:24 GMT

I came across an issue in the metrics for zone and cluster. I have logged a bug for the same.

To quickly summarize the issue: APIs have a pagesize restriction - the global
setting is used as the max result count - value is typically 500. In this case, listClusters
and listHosts APIS are used to gather metrics data for zone and clusters. If there are 600
hosts, then one call to listHosts will only return 500 hosts. The usage data is summed up
for 500 hosts, however average is calculated based the total hosts which is 600.

To correct this, UI should fetch ALL hosts for ALL clusters to get the right result. Ideally
this kind of calculation should be done at the API level - large number of hosts will result
in performance degradation. The right way to fix this would be to add a new API for metrics
calculations at zones/cluster level.

@Rohit, since you are the original contributor, can you help me with the background on this?
Any comments/suggestions on doing this differently are most welcome.


Rashmi Dixit
Principal Product Engineer | CloudPlatform |

This e-mail may contain privileged and confidential information which is the property of Accelerite,
a Persistent Systems business. It is intended only for the use of the individual or entity
to which it is addressed. If you are not the intended recipient, you are not authorized to
read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Accelerite, a Persistent
Systems business does not accept any liability for virus infected mails.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message