mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
The VM rows of the instance lists used instance.proxy.instance.info in every state check, the vCPU column and the action buttons. A template calls the method on each lookup, so every row made 7 virDomainGetInfo RPCs (8 on a compute's instances page), and the memory column read the domain XML once more. - Instance.info reads virDomainGetInfo once per request; the lists and instance_actions.html use it. - The memory column of both index views comes from the same info (current memory) instead of the domain XML. The value is the same: checked against currentMemory for every running and shut-off VM of the test hosts. A row now makes one info call and one XML read (the title). The new test counts the calls in the grouped and non-grouped index and on the compute instances page; it fails on the previous code with 7 and 8 calls. |
||
|---|---|---|
| .. | ||
| computes | ||
| create_comp_block.html | ||
| overview.html | ||