1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/computes
catborise ea20f12bc8 feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once
Bulk Migrate sent every chosen VM to one destination, without looking at
its memory. With several other hosts it now spreads them by default
(computes.balance.spread): the largest VMs first, each to the host that
has the least memory, then vCPUs, with it; a VM that holds its memory
(running or paused) only where it fits the memory the host's running and
paused VMs leave. The page shows where
each VM goes and makes the spread again when a VM is ticked or unticked;
a VM no host has room for says so. One destination stays a choice. The
host.bulk_migrate job takes a destination per VM ("moves").

The Balance and Bulk Migrate pages asked, for every VM and destination,
the host's identity and whether both hosts share each disk directory,
which writes a marker file on the shared storage: about 86 ms a pair,
sequential, so minutes with a few hundred VMs on ten hosts. A Reach
(computes/reach.py) asks each host pair and each directory once and
reads a VM's definitions once. vrtManager: wvmInstances.shares and
file_disks, also used by disk_plan.

read_fleet reads the hosts, their VMs and loads for both pages.
2026-11-16 10:29:07 +03:00
..
api fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
migrations fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
templates feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
tests feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
apps.py fix: track migrations; installs apply them instead of generating them 2026-10-04 01:08:11 +03:00
balance.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
forms.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
jobs.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
models.py fix(computes): hosts that do not answer no longer keep the Computes page from the others 2026-11-13 16:38:42 +03:00
reach.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
urls.py feat(computes): Balance proposes migrations that even out the hosts 2026-11-16 07:37:10 +03:00
utils.py fix(admin): two administrators at once leave a superuser and one user per address 2026-11-13 14:54:51 +03:00
validators.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
views.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00