1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/operations
catborise 4941a8a048 feat(computes): Balance proposes migrations that even out the hosts
A Balance button on the Computes page opens computes/balance/: the memory
and vCPUs each host gives its running VMs, before and after, and the
proposed migrations. The proposal (computes/balance.py) takes, step by
step, the one move that most lowers the sum of the squared memory loads,
then of the squared vCPU loads, and stops when none does; each VM moves
once, and the VMs moved to a host fit in the memory its running and
paused VMs leave without counting those moved away, so the moves may
run in any order. Only running VMs count and
move; one that cannot move (no destination shares its disks) still
counts on its host and is listed with the reason. Unticking a VM keeps
it where it is and makes the proposal again.

Migrate runs the moves shown in one host.balance job. It shares the bulk
migration's loop (computes.jobs.Migrations): migrate jobs, the chosen
number at once, one bulk job at a time. Its migrations take only a
running VM (moveto running_only): one stopped since stays where it is.

A job another one started now shows only on its own page: a host's page
no longer lists a bulk migration's or a balance's migrations, and the
Computes page shows the bulk jobs.
2026-11-16 07:37:10 +03:00
..
api feat(computes): Balance proposes migrations that even out the hosts 2026-11-16 07:37:10 +03:00
management feat(operations): the job worker 2026-10-14 23:27:57 +03:00
migrations fix(computes): a bulk migration shows as one job on the host's page 2026-11-15 20:00:41 +03:00
static/operations fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
templates/operations fix(ui): the Logs and Jobs page links fit a phone screen 2026-11-10 09:05:01 +03:00
templatetags feat(operations): the job panel and job pages speak the page's language 2026-11-02 23:33:34 +03:00
tests fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
__init__.py feat(operations): job, claim and worker lease models 2026-10-14 23:27:57 +03:00
apps.py refactor(settings): SQLite's WAL mode is an init_command 2026-11-06 11:01:51 +03:00
claims.py feat(computes): Balance proposes migrations that even out the hosts 2026-11-16 07:37:10 +03:00
jobs.py fix(computes): a bulk migration shows as one job on the host's page 2026-11-15 20:00:41 +03:00
models.py fix(computes): a bulk migration shows as one job on the host's page 2026-11-15 20:00:41 +03:00
urls.py feat(operations): jobs page 2026-10-14 23:27:57 +03:00
utils.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
views.py fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
worker.py fix(operations): a housekeeping pass is not started while one runs 2026-11-10 13:48:14 +03:00