fix: do not spread unplaced VMs once a VM of the cluster is pinned
As soon as any VM of a cluster (in any status) is assigned to one of its hosts, the placement is treated as managed by hand: VMs without a host are no longer spread over the hosts and only count towards the cluster totals. Cluster panel and host tab say which case applies. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
afa15eb46a
commit
8aa8d3fe1e
6 files changed
+65
-23
No files matched your search
@@ -45,8 +45,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer small text-muted">
|
||||
Gezählt werden alle VMs außer „Offline“ und „Außer Betrieb“. VMs ohne festen Host werden anteilig nach Größe
|
||||
auf die Hosts verteilt: vCPUs nach Threads, RAM nach Host-RAM. Ist bei keinem Host CPU/RAM erfasst, zu gleichen Teilen.
|
||||
Gezählt werden alle VMs außer „Offline“ und „Außer Betrieb“.
|
||||
{% if capacity.distributed %}
|
||||
VMs ohne festen Host sind anteilig nach Größe auf die Hosts verteilt: vCPUs nach Threads, RAM nach Host-RAM
|
||||
(zu gleichen Teilen, wenn bei keinem Host CPU/RAM erfasst ist).
|
||||
{% elif capacity.unplaced_vm_count %}
|
||||
{{ capacity.unplaced_vm_count }} VM{{ capacity.unplaced_vm_count|pluralize:",s" }} ohne festen Host
|
||||
{{ capacity.unplaced_vm_count|pluralize:"zählt,zählen" }} nur zur Cluster-Summe: Im Cluster sind VMs fest Hosts
|
||||
zugewiesen, deshalb wird nicht automatisch verteilt.
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -64,7 +64,7 @@
|
||||
{% else %}
|
||||
<div class="card-body text-muted">Keine VMs mit diesem Gerät als Host.</div>
|
||||
{% endif %}
|
||||
{% if capacity.host_share and capacity.unplaced_vm_count %}
|
||||
{% if capacity.distributed and capacity.unplaced_vm_count %}
|
||||
<div class="card-footer small text-muted">
|
||||
Die Liste zeigt nur VMs, deren Gerät dieser Host ist. {{ capacity.unplaced_vm_count }} weitere VM{{ capacity.unplaced_vm_count|pluralize:",s" }}
|
||||
des Clusters ohne festen Host {{ capacity.unplaced_vm_count|pluralize:"ist,sind" }} anteilig in der Auslastung enthalten.
|
||||
|
||||
@@ -14,12 +14,18 @@
|
||||
<th scope="row">VMs</th>
|
||||
<td>
|
||||
{{ capacity.vm_count }} VM{{ capacity.vm_count|pluralize:",s" }} · {{ capacity.vcpus|floatformat:"-1" }} vCPUs · {{ vm_memory }} RAM
|
||||
{% if capacity.host_share and capacity.unplaced_vm_count %}
|
||||
{% if capacity.unplaced_vm_count %}
|
||||
<div class="small text-muted">
|
||||
inkl. anteiliger Last aus {{ capacity.unplaced_vm_count }} Cluster-VM{{ capacity.unplaced_vm_count|pluralize:",s" }} ohne festen Host
|
||||
{% if capacity.host_share and capacity.distributed %}
|
||||
inkl. anteiliger Last aus {{ capacity.unplaced_vm_count }} Cluster-VM{{ capacity.unplaced_vm_count|pluralize:",s" }} ohne festen Host
|
||||
{% elif capacity.host_share %}
|
||||
{{ capacity.unplaced_vm_count }} Cluster-VM{{ capacity.unplaced_vm_count|pluralize:",s" }} ohne festen Host nicht enthalten, weil im Cluster VMs fest Hosts zugewiesen sind
|
||||
{% elif capacity.distributed %}
|
||||
davon {{ capacity.unplaced_vm_count }} ohne festen Host, anteilig nach Größe auf die Hosts verteilt
|
||||
{% else %}
|
||||
davon {{ capacity.unplaced_vm_count }} ohne festen Host, nicht auf die Hosts verteilt (es sind VMs fest zugewiesen)
|
||||
{% endif %}
|
||||
</div>
|
||||
{% elif capacity.unplaced_vm_count %}
|
||||
<div class="small text-muted">davon {{ capacity.unplaced_vm_count }} ohne festen Host, anteilig nach Größe auf die Hosts verteilt</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in new issue
Block a user