mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 04:06:47 +00:00
A user's quota counted each VM's running vCPUs, memory and disks, so a larger value set for the VM's next start was not counted, and a clone counted only once its VM was recorded, so a user could queue clones past the quota. Now: - Each VM counts the larger of its running and its next-start values. - A clone job counts as one VM with the source's persistent vCPUs, memory and disk size, which its plan stores, from its admission until its VM is recorded; a failed, cancelled or resolved job no longer counts. The clone's VM and its owner are recorded in one transaction, so the quota counts either the job or the VM, never neither. - The quota reads each VM's definition once (cached_reads). |
||
|---|---|---|
| .. | ||
| api | ||
| fixtures | ||
| migrations | ||
| templates | ||
| templatetags | ||
| tests | ||
| __init__.py | ||
| addresses.py | ||
| apps.py | ||
| forms.py | ||
| jobs.py | ||
| models.py | ||
| report.py | ||
| states.py | ||
| urls.py | ||
| utils.py | ||
| views.py | ||