1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/instances/templates
catborise 2d0f41ee57 perf(instances): VM lists read each host once, not three calls a VM
A VM list row showed the VM's state, memory, vCPUs and title, read
through the VM's own connection object: a lookup by UUID, virDomainGetInfo
and the live XML, one after the other for every VM on the page.

The lists (Instances, grouped or not, and a compute's VMs) now read each
host once: the states in one getAllDomainStats call (the state group
only, as the lists' poll; no other group, so a VM busy in the QEMU
monitor holds nothing up) and the memory, vCPUs and title from each
VM's live XML, which the title already read. Checked on QEMU against
virDomainGetInfo for running, paused and shut-off VMs: the same values.

A VM gone from its host, or a host that cannot be read or fails its
listing, shows its VMs unknown as before. Only the grouped list, a
superuser's, prefetches every host's VMs and owners.
2026-11-04 20:54:11 +03:00
..
instances style(instances): the Console tab asks for a new password only with "Set a new one" 2026-11-04 15:15:12 +03:00
add_instance_cdrom.html feat(instances): a CD-ROM is added on the bus chosen, with its ISO 2026-11-01 16:27:39 +03:00
add_instance_network_block.html refactor(instances): the VM page's scripts load from static files 2026-11-02 09:04:29 +03:00
add_instance_owner_block.html feat(instances): the VM page's add dialogs in the panel's dialog look 2026-10-31 18:35:09 +03:00
add_instance_volume.html refactor(instances): the VM lists' scripts load from static files 2026-11-02 09:35:07 +03:00
allinstances.html perf(instances): VM lists read each host once, not three calls a VM 2026-11-04 20:54:11 +03:00
allinstances_index_grouped.html refactor(instances): the VM lists' scripts load from static files 2026-11-02 09:35:07 +03:00
allinstances_index_nongrouped.html feat(instances): the VM list on Bootstrap's pills, badges and menus, its actions by the user's rights 2026-10-28 13:55:46 +03:00
create_flavors.html feat(templates): every confirmation asks in the page's own dialog 2026-10-31 20:44:39 +03:00
create_flavors_reply.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_inst_block.html feat(instances): the VM list on Bootstrap's pills, badges and menus, its actions by the user's rights 2026-10-28 13:55:46 +03:00
create_instance_w1.html refactor(instances): the VM create pages' scripts load from static files 2026-11-02 09:26:39 +03:00
create_instance_w2.html refactor(instances): the VM create pages' scripts load from static files 2026-11-02 09:26:39 +03:00
create_presets.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_steps.html refactor(templates): Bootstrap's components instead of the panel's own CSS for capacity, steps and disclosures 2026-10-27 17:05:03 +03:00
instance.html refactor(instances): the VM page's scripts load from static files 2026-11-02 09:04:29 +03:00
instance_actions.html refactor(instances): the VM lists' scripts load from static files 2026-11-02 09:35:07 +03:00
instance_name_cell.html feat(instances): the VM list on Bootstrap's pills, badges and menus, its actions by the user's rights 2026-10-28 13:55:46 +03:00
instance_state.html feat(instances): the VM list on Bootstrap's pills, badges and menus, its actions by the user's rights 2026-10-28 13:55:46 +03:00