| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
* Adding avgload for kvm * Fix coding style issue * Add getter/setter * Fix several small errors * Add override * Uncomment getAverageLoad * Override getAverageLoad() * Checkstyle bug? * Delete trailing spaces * Renaming function * Change interface to match * Rename method in GetHostStatsAnswer * Change method call name * Convert double to long * Remove trailing whitespace * Change names around * Make load visible to return it * Parse string to double * Change Long to Double * Fix getter
There was a problem hiding this comment.
Code LGTM
Sorry, something went wrong.
|
@blueorangutan package |
Sorry, something went wrong.
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-420 |
Sorry, something went wrong.
|
@DennisKonrad (local) 🐵 > list hosts filter=averageload |
Sorry, something went wrong.
|
@weizhouapache I changed both of the keys to cpuloadaverage: |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
manually test it on ubuntu 18.04
Sorry, something went wrong.
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-423 |
Sorry, something went wrong.
|
I would start a regression suite, but... |
Sorry, something went wrong.
|
@DaanHoogland I don't think that automation tests are strictly necessary in this case. It is a simple change, and we already have code reviews and one manual tests by @weizhouapache. I am assuming that the centos6 failing to package is not related to this PR. |
Sorry, something went wrong.
|
@DennisKonrad Why do the Host Metrics on your screenshots show a String and not a Double? We should return this in the API as a Double and not a String. The screenshot where you do 'list hostmetrics' |
Sorry, something went wrong.
|
Good point @wido. It is set as double or Double on HostStats.java, HostResponse.java, GetHostStatsAnswer.java, and HostStatsEntry.java. Additionally, at CPUStat.java the method getCpuLoadAverage() returns Double. Therefore, it looks OK on the PR. However, list hostmetrics returns it as String; list hosts looks fine though. I will take a look around the list hostmetrics. On a 5.0 we can normalize API values and fix issues such as % values returned as Strings instead of double. |
Sorry, something went wrong.
|
@wido Good catch. Will change that to output as double |
Sorry, something went wrong.
|
@GabrielBrascher centos6 is broken on a lot (most if not all) PRs. not to worry about that one. |
Sorry, something went wrong.
Remove some unnecessary whitespaces
|
@wido I think it's better now. |
Sorry, something went wrong.
|
Looking good! |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, left a minor remark. (rename should be avoided, but I personally don't hold on that as the renaming makes it consistent)
Sorry, something went wrong.
|
Looking good to merge. |
Sorry, something went wrong.
* Avgload (#2) * Adding avgload for kvm * Fix coding style issue * Add getter/setter * Fix several small errors * Add override * Uncomment getAverageLoad * Override getAverageLoad() * Checkstyle bug? * Delete trailing spaces * Renaming function * Change interface to match * Rename method in GetHostStatsAnswer * Change method call name * Convert double to long * Remove trailing whitespace * Change names around * Make load visible to return it * Parse string to double * Change Long to Double * Fix getter * Unify naming to cpuloadaverage * Change cpuloadaverage String to Double in listHostsMetrics Remove some unnecessary whitespaces * Add CPU_LOAD_AVERAGE to ApiConstants
| Back | FazBrowse Home | New Git URL |
Description
This adds the load average for the kvm hypervisor. The average Load already seems to be available for Xen.
In the listHosts the averageload is already present. In listHostMetrics it appears as "cpuloadaverage".
It adds the 1-min load average from /proc/loadavg to the
listHosts
listHostsMetrics
API calls.
Types of changes
How Has This Been Tested?
Built and tested in kvm cluster.
Tested manually via API calls