Uh oh!
There was an error while loading. Please reload this page.
Adding memoryallocatedpercentage & memoryallocatedbytes to HostsResponse & HostsForMigrationResponse - #4478
Conversation
c88d297 to
1c938d9Comparedavidjumani
commented
Nov 18, 2020
@blueorangutan package |
davidjumani
commented
Nov 18, 2020
@blueorangutan package |
blueorangutan
commented
Nov 18, 2020
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
davidjumani
commented
Nov 18, 2020
@weizhouapache Is it fine that the memory is numeric but CPU is in percentage ? Or would it be better to have new |
blueorangutan
commented
Nov 18, 2020
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2400 |
DaanHoogland
commented
Nov 18, 2020
@blueorangutan test |
blueorangutan
commented
Nov 18, 2020
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
commented
Nov 18, 2020
@davidjumani it would be better. but it might break backwards compatibility (hope few users will be impacted). |
blueorangutan
commented
Nov 18, 2020
Trillian test result (tid-3198)
|
| hostResponse.setMemWithOverprovisioning(decimalFormat.format(memWithOverprovisioning)); | ||
| hostResponse.setMemoryAllocated(decimalFormat.format((float) mem / memWithOverprovisioning * 100.0f) +"%"); | ||
| hostResponse.setMemoryAllocated(mem); | ||
There was a problem hiding this comment.
It will but we can introduce two new fields memoryallocaedpercentage & cpuallocaedpercentage to compensate.
This will ensure that the response for both HostResponse and HostForMigrationResponse will be the same. Sounds good @rhtyd ?
DaanHoogland
commented
Nov 19, 2020
€0,02: we can add responce parameters that are alligned for both -precentages and -values and leave these alone alltogether. @weizhouapache @rhtyd @davidjumani ? |
weizhouapache
commented
Nov 19, 2020
@DaanHoogland good to me. and mark the cpuallocated and memoryallocated as deprecated ? |
DaanHoogland
commented
Nov 19, 2020
yes |
davidjumani
commented
Nov 19, 2020
Sounds good! I'll make the changes |
…nse & HostsForMigrationResponse
1c938d9 to
8226351Comparedavidjumani
commented
Nov 20, 2020
@DaanHoogland@weizhouapache Added |
DaanHoogland
commented
Nov 20, 2020
yes 👍 don't bother for now but I'm creating a ticket do implement the same for cpu #4488 |
DaanHoogland
commented
Nov 20, 2020
@blueorangutan package |
blueorangutan
commented
Nov 20, 2020
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 20, 2020
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2413 |
DaanHoogland
commented
Nov 20, 2020
I don't think we need smoke tests for this. restarted two of the travis runs |
Description
Fixes#4460
Adds
memoryallocatedpercentage&memoryallocatedbytesto HostsResponse as well as HostsForMigrationResponse and deprecatesmemoryallocatedTypes of changes
How Has This Been Tested?