mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36: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. |
||
|---|---|---|
| .. | ||
| api | ||
| migrations | ||
| templates | ||
| __init__.py | ||
| apps.py | ||
| forms.py | ||
| models.py | ||
| test_api_security.py | ||
| test_operation_locks.py | ||
| test_ownership.py | ||
| test_quota_down_host.py | ||
| test_reconciliation.py | ||
| tests.py | ||
| urls.py | ||
| utils.py | ||
| validators.py | ||
| views.py | ||