-
{{ host.name }}
+
{{ host.name }}
+ {% widthratio host.size.0 1 1024 as bytes %}{{ bytes|filesizeformat }}
{% for bar in host.bars %}{% if forloop.first or moves %}
{% if forloop.first %}{% with memory=host.before.0 vcpus=host.before.1 %}
{% if moves %}{% trans "Now" %}{% else %}{% trans "Running VMs" %}{% endif %}
- {% widthratio memory 1 1024 as bytes %}{{ bytes|filesizeformat }}, {% blocktrans count counter=vcpus %}{{ counter }} vCPU{% plural %}{{ counter }} vCPUs{% endblocktrans %}
+
{% widthratio memory 1 1024 as bytes %}{{ bytes|filesizeformat }}, {% blocktrans count counter=vcpus %}{{ counter }} vCPU{% plural %}{{ counter }} vCPUs{% endblocktrans %} {% blocktrans count counter=host.size.1 %}on {{ counter }} CPU{% plural %}on {{ counter }} CPUs{% endblocktrans %}
{% endwith %}{% else %}{% with memory=host.after.0 vcpus=host.after.1 %}
{% trans "After" %}
- {% widthratio memory 1 1024 as bytes %}{{ bytes|filesizeformat }}, {% blocktrans count counter=vcpus %}{{ counter }} vCPU{% plural %}{{ counter }} vCPUs{% endblocktrans %}
+
{% widthratio memory 1 1024 as bytes %}{{ bytes|filesizeformat }}, {% blocktrans count counter=vcpus %}{{ counter }} vCPU{% plural %}{{ counter }} vCPUs{% endblocktrans %} {% blocktrans count counter=host.size.1 %}on {{ counter }} CPU{% plural %}on {{ counter }} CPUs{% endblocktrans %}
{% endwith %}{% endif %}
diff --git a/computes/tests/test_balance.py b/computes/tests/test_balance.py
index 2e173e4d..b192501d 100644
--- a/computes/tests/test_balance.py
+++ b/computes/tests/test_balance.py
@@ -1,6 +1,6 @@
-"""Balance proposes migrations of running VMs that even out the memory, then
-the vCPUs, the hosts give their running VMs, and runs the proposal shown in
-one job of migrate jobs that take only a running VM."""
+"""Balance proposes migrations of running VMs that even out the share of
+their memory, then of their CPUs, the hosts give their running VMs, and runs
+the proposal shown in one job of migrate jobs that take only a running VM."""
from unittest.mock import patch
@@ -20,6 +20,7 @@ DOMAIN = """{name} 128hvm {disk} """
LOCAL = " "
ROOM = {"a": 100, "b": 100, "c": 100, "d": 100}
+SIZES = {host: (64, 16) for host in "abcd"} # hosts of one size
class ProposeTests(SimpleTestCase):
@@ -28,64 +29,83 @@ class ProposeTests(SimpleTestCase):
loads = {"a": (10, 0), "b": (10, 0), "c": (0, 0), "d": (0, 0)}
vms = [(1, "a", 5, 0, {"b", "c", "d"}), (2, "a", 5, 0, {"b", "c", "d"}),
(3, "b", 5, 0, {"a", "c", "d"}), (4, "b", 5, 0, {"a", "c", "d"})]
- moves, after = propose(loads, vms, ROOM)
+ moves, after = propose(loads, vms, ROOM, SIZES)
self.assertEqual(len(moves), 2)
self.assertEqual(sorted(load[0] for load in after.values()), [5, 5, 5, 5])
def test_the_memory_comes_first_then_the_vcpus(self):
loads = {"a": (8, 2), "b": (0, 6)}
vms = [(1, "a", 4, 1, {"b"}), (2, "b", 0, 3, {"a"})]
- moves, after = propose(loads, vms, ROOM)
+ moves, after = propose(loads, vms, ROOM, SIZES)
self.assertEqual(moves, [(1, "a", "b"), (2, "b", "a")])
self.assertEqual(after, {"a": [4, 4], "b": [4, 4]})
def test_a_vm_moves_once_and_only_where_it_may_go(self):
loads = {"a": (12, 0), "b": (0, 0), "c": (0, 0)}
- moves, _after = propose(loads, [(1, "a", 6, 0, {"b"}), (2, "a", 6, 0, {"b"})], ROOM)
+ moves, _after = propose(loads, [(1, "a", 6, 0, {"b"}), (2, "a", 6, 0, {"b"})], ROOM, SIZES)
self.assertEqual(moves, [(1, "a", "b")])
def test_no_move_fills_a_host_past_its_room(self):
loads = {"a": (60, 0), "b": (50, 0)}
- self.assertEqual(propose(loads, [(1, "a", 30, 0, {"b"})], {"a": 40, "b": 20}), ([], {"a": [60, 0], "b": [50, 0]}))
+ self.assertEqual(propose(loads, [(1, "a", 30, 0, {"b"})], {"a": 40, "b": 20}, SIZES), ([], {"a": [60, 0], "b": [50, 0]}))
def test_a_vm_moved_away_makes_no_room_for_one_moved_in(self):
# b's room stays 0 after vm 2 leaves it: vm 1 would fill b before vm 2 has left, if it ran first
loads = {"a": (100, 0), "b": (80, 0), "c": (0, 0)}
vms = [(1, "a", 30, 0, {"b"}), (2, "b", 40, 0, {"c"})]
- self.assertEqual(propose(loads, vms, {"a": 0, "b": 0, "c": 100})[0], [(2, "b", "c")])
+ self.assertEqual(propose(loads, vms, {"a": 0, "b": 0, "c": 100}, SIZES)[0], [(2, "b", "c")])
def test_small_vms_move_rather_than_a_large_one_for_the_same_balance(self):
# a: a large VM (16) and two small ones (1, 2); b: one small VM (1). Moving the large VM to b and
# the small one back ends as even as moving the two small ones, which moves far less memory
loads = {"a": (19, 7), "b": (1, 4)}
vms = [(1, "a", 16, 2, {"b"}), (2, "a", 1, 1, {"b"}), (3, "a", 2, 4, {"b"}), (4, "b", 1, 4, {"a"})]
- moves, after = propose(loads, vms, ROOM)
+ moves, after = propose(loads, vms, ROOM, SIZES)
self.assertEqual(moves, [(2, "a", "b"), (3, "a", "b")])
self.assertEqual(after, {"a": [16, 2], "b": [4, 9]})
def test_a_large_vm_moves_when_only_it_evens_out_the_hosts(self):
loads = {"a": (20, 0), "b": (0, 0)}
vms = [(1, "a", 10, 0, {"b"}), (2, "a", 1, 0, {"b"})]
- self.assertEqual(propose(loads, vms, {"a": 100, "b": 100})[0], [(1, "a", "b")])
+ self.assertEqual(propose(loads, vms, {"a": 100, "b": 100}, SIZES)[0], [(1, "a", "b")])
def test_even_hosts_need_no_move(self):
loads = {"a": (4, 2), "b": (4, 2)}
- self.assertEqual(propose(loads, [(1, "a", 4, 2, {"b"})], ROOM)[0], [])
+ self.assertEqual(propose(loads, [(1, "a", 4, 2, {"b"})], ROOM, SIZES)[0], [])
+
+
+ def test_a_host_twice_as_large_takes_twice_the_memory(self):
+ loads = {"a": (12, 0), "b": (0, 0)}
+ vms = [(n, "a", 2, 0, {"b"}) for n in range(1, 7)]
+ moves, after = propose(loads, vms, ROOM, {"a": (32, 8), "b": (64, 8)})
+ self.assertEqual(len(moves), 4)
+ self.assertEqual(after, {"a": [4, 0], "b": [8, 0]})
+
+ def test_the_vcpus_count_against_the_cpus_of_each_host(self):
+ loads = {"a": (0, 6), "b": (0, 0)}
+ _moves, after = propose(loads, [(n, "a", 0, 1, {"b"}) for n in range(1, 7)], ROOM, {"a": (64, 4), "b": (64, 8)})
+ self.assertEqual(after, {"a": [0, 2], "b": [0, 4]})
class SpreadTests(SimpleTestCase):
def test_the_largest_vm_goes_first_each_to_the_emptiest_host(self):
loads = {"b": (4, 0), "c": (0, 0)}
vms = [(1, 2, 1, True, {"b", "c"}), (2, 6, 1, True, {"b", "c"}), (3, 3, 1, False, {"b", "c"})]
- placed, after = spread(loads, vms, ROOM)
+ placed, after = spread(loads, vms, ROOM, SIZES)
self.assertEqual(placed, {2: "c", 3: "b", 1: "c"})
self.assertEqual(after, {"b": [7, 1], "c": [8, 2]})
def test_a_running_vm_goes_only_where_it_fits_and_a_shut_off_one_anywhere(self):
loads = {"b": (0, 0)}
- placed, _after = spread(loads, [(1, 8, 1, True, {"b"}), (2, 8, 1, False, {"b"})], {"b": 4})
+ placed, _after = spread(loads, [(1, 8, 1, True, {"b"}), (2, 8, 1, False, {"b"})], {"b": 4}, SIZES)
self.assertEqual(placed, {2: "b"})
+ def test_the_larger_host_takes_more(self):
+ loads = {"b": (0, 0), "c": (0, 0)}
+ vms = [(n, 2, 0, False, {"b", "c"}) for n in range(1, 7)]
+ _placed, after = spread(loads, vms, ROOM, {"b": (32, 8), "c": (64, 8)})
+ self.assertEqual(after, {"b": [4, 0], "c": [8, 0]})
+
class BalancePageTests(TestCase):
def setUp(self):
diff --git a/computes/views.py b/computes/views.py
index 16dd0512..e4e4d6d3 100644
--- a/computes/views.py
+++ b/computes/views.py
@@ -233,8 +233,9 @@ def read_fleet():
"""The computes; those the panel reads now, {pk: compute}, read side by
side and bounded (one that does not answer is left out); their VMs, with
their info; what each gives its running VMs, {pk: [memory KiB, vCPUs]};
- and the memory KiB its running and paused VMs, also those the panel does
- not list, leave of its memory, {pk: KiB}."""
+ the memory KiB its running and paused VMs, also those the panel does not
+ list, leave of its memory, {pk: KiB}; and its size, {pk: (memory KiB,
+ CPUs)}."""
computes = list(Compute.objects.order_by("name"))
read_hosts(computes)
hosts = {compute.pk: compute for compute in computes if compute.status is True and compute.shown_capacity}
@@ -249,7 +250,8 @@ def read_fleet():
loads[instance.compute_id][1] += instance.info[3]
room = {pk: (compute.shown_capacity["memory"] - compute.shown_capacity["assigned"]["running"]) // 1024
for pk, compute in hosts.items()}
- return computes, hosts, instances, loads, room
+ sizes = {pk: (compute.shown_capacity["memory"] // 1024, compute.shown_capacity["cpus"]) for pk, compute in hosts.items()}
+ return computes, hosts, instances, loads, room, sizes
@superuser_only
@@ -302,7 +304,7 @@ def bulk_migrate(request, compute_id):
"parallel": range(1, parallel_limit() + 1)})
# the other hosts' loads: the VMs of this one are read above, also when its capacity cannot be
- _computes, hosts, _instances, loads, room = read_fleet()
+ _computes, hosts, _instances, loads, room, sizes = read_fleet()
others = {pk: host for pk, host in hosts.items() if pk != compute.pk}
shown, ticked = request.GET.getlist("shown"), request.GET.getlist("vm")
vms = []
@@ -317,7 +319,7 @@ def bulk_migrate(request, compute_id):
# at first the VMs that are not shut off, as with one destination; then the ticked ones
if instance.info and (str(instance.pk) in ticked if shown else not shut_off):
vms.append((instance.pk, instance.info[2], instance.info[3], not shut_off, can_go))
- placed, _after = spread({pk: loads[pk] for pk in others}, vms, {pk: room[pk] for pk in others})
+ placed, _after = spread({pk: loads[pk] for pk in others}, vms, {pk: room[pk] for pk in others}, sizes)
for instance in instances:
instance.target = others.get(placed.get(instance.pk))
if instance.target is None and any(vm[0] == instance.pk for vm in vms):
@@ -333,8 +335,9 @@ def bulk_migrate(request, compute_id):
@superuser_only
def balance(request):
- """Proposes migrations of running VMs that even out the memory, then
- the vCPUs, the hosts give their running VMs (computes.balance), and
+ """Proposes migrations of running VMs that even out the share of their
+ memory, then of their CPUs, the hosts give their running VMs
+ (computes.balance), and
runs the proposal shown in one job. A VM unticked stays where it is and
the proposal is made again without it: the form sends the VMs it showed
("shown") and the ticked ones ("vm")."""
@@ -356,7 +359,7 @@ def balance(request):
return redirect("computes")
return redirect("balance")
- computes, hosts, instances, loads, room = read_fleet()
+ computes, hosts, instances, loads, room, sizes = read_fleet()
running = [instance for instance in instances if instance.info and instance.info[0] == 1]
pinned = set(request.GET.getlist("shown")) - set(request.GET.getlist("vm"))
movable, unmovable, reach = [], [], Reach(request)
@@ -371,12 +374,11 @@ def balance(request):
elif refusals:
instance.refusals = [f"{target.name}: {refusal}" for target, refusal in refusals.items()]
unmovable.append(instance)
- moves, after = propose(loads, movable, room)
- # the bars of each host's memory before and after, on the scale of the largest
- scale = max([load[0] for load in (*loads.values(), *after.values())] + [1])
+ moves, after = propose(loads, movable, room, sizes)
+ # the bars: the share of each host's memory before and after
for pk, compute in hosts.items():
- compute.before, compute.after = loads[pk], after[pk]
- compute.bars = [load[0] * 100 / scale for load in (loads[pk], after[pk])]
+ compute.before, compute.after, compute.size = loads[pk], after[pk], sizes[pk]
+ compute.bars = [min(load[0] * 100 / max(sizes[pk][0], 1), 100) for load in (loads[pk], after[pk])]
by_pk = {instance.pk: instance for instance in running}
for vm, _source, target in moves:
by_pk[vm].target = hosts[target]
diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo
index fc05cacd..5a6808ef 100644
Binary files a/locale/tr/LC_MESSAGES/django.mo and b/locale/tr/LC_MESSAGES/django.mo differ
diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po
index ef3e0a73..9fc863c8 100644
--- a/locale/tr/LC_MESSAGES/django.po
+++ b/locale/tr/LC_MESSAGES/django.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-11-16 07:18+0000\n"
+"POT-Creation-Date: 2026-11-16 10:39+0000\n"
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
"Last-Translator: catborise , 2020\n"
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
@@ -64,8 +64,8 @@ msgstr "Açık anahtar zaten mevcut"
msgid "Invalid key"
msgstr "Geçersiz anahtar"
-#: accounts/forms.py:95 computes/templates/computes/balance.html:57
-#: computes/templates/computes/balance.html:104
+#: accounts/forms.py:95 computes/templates/computes/balance.html:58
+#: computes/templates/computes/balance.html:105
#: computes/templates/computes/bulk_migrate.html:53
#: computes/templates/computes/instances.html:46
#: instances/templates/add_instance_volume.html:39
@@ -238,7 +238,7 @@ msgid "Add VM"
msgstr "Sanal makine ekle"
#: accounts/templates/account.html:68 admin/templates/admin/logs.html:40
-#: computes/templates/computes/balance.html:105
+#: computes/templates/computes/balance.html:106
#: computes/templates/computes/list.html:59
#: instances/templates/allinstances.html:108
#: instances/templates/allinstances_index_nongrouped.html:8
@@ -771,7 +771,7 @@ msgstr ""
msgid "vCPUs"
msgstr "vCPU"
-#: admin/forms.py:209 computes/templates/computes/balance.html:58
+#: admin/forms.py:209 computes/templates/computes/balance.html:59
#: computes/templates/computes/bulk_migrate.html:55
#: computes/templates/computes/instances.html:50
#: computes/templates/computes/list.html:62 computes/templates/overview.html:66
@@ -2068,7 +2068,7 @@ msgstr ""
"Bu, VM'lerinin bulunduğu sunucudan başka bir sunucu: yeni bir sunucu olarak "
"ekleyin"
-#: computes/reach.py:56
+#: computes/reach.py:60
msgid ""
"A disk file is not on storage both hosts share: migrate it from its page"
msgstr ""
@@ -2083,28 +2083,29 @@ msgstr "Sunucular"
#: computes/templates/computes/balance.html:15
msgid ""
-"Migrations that share the memory, then the vCPUs, of running VMs evenly among"
-" the hosts."
+"Migrations that give each host about the same share of its memory, then of "
+"its CPUs, for its running VMs: a host twice as large takes twice as much."
msgstr ""
-"Çalışan sanal makinelerin belleğini, ardından vCPU'larını sunuculara eşit "
-"dağıtan taşımalar."
+"Her sunucuya, çalışan sanal makineleri için belleğinin, ardından CPU'larının "
+"yaklaşık aynı payını veren taşımalar: iki kat büyük bir sunucu iki katını "
+"alır."
#: computes/templates/computes/balance.html:17
#: computes/templates/computes/bulk_migrate.html:20
msgid "These hosts cannot be read and are left out:"
msgstr "Bu sunucular okunamıyor ve hesaba katılmadı:"
-#: computes/templates/computes/balance.html:28
+#: computes/templates/computes/balance.html:29
#: instances/templates/instances/snapshots_tab.html:18
msgid "Now"
msgstr "Şimdi"
-#: computes/templates/computes/balance.html:28
+#: computes/templates/computes/balance.html:29
msgid "Running VMs"
msgstr "Çalışan sanal makineler"
-#: computes/templates/computes/balance.html:29
-#: computes/templates/computes/balance.html:32
+#: computes/templates/computes/balance.html:30
+#: computes/templates/computes/balance.html:33
#: computes/templates/computes/capacity_vcpus.html:4
#, python-format
msgid "%(counter)s vCPU"
@@ -2112,51 +2113,61 @@ msgid_plural "%(counter)s vCPUs"
msgstr[0] "%(counter)s vCPU"
msgstr[1] "%(counter)s vCPU"
-#: computes/templates/computes/balance.html:31
+#: computes/templates/computes/balance.html:30
+#: computes/templates/computes/balance.html:33
+#: computes/templates/computes/capacity_vcpus.html:4
+#: computes/templates/computes/list.html:42
+#, python-format
+msgid "on %(counter)s CPU"
+msgid_plural "on %(counter)s CPUs"
+msgstr[0] "%(counter)s CPU üzerinde"
+msgstr[1] "%(counter)s CPU üzerinde"
+
+#: computes/templates/computes/balance.html:32
msgid "After"
msgstr "Sonra"
-#: computes/templates/computes/balance.html:34
+#: computes/templates/computes/balance.html:35
msgid "Memory now"
msgstr "Şimdiki bellek"
-#: computes/templates/computes/balance.html:34
+#: computes/templates/computes/balance.html:35
msgid "Memory after"
msgstr "Sonraki bellek"
-#: computes/templates/computes/balance.html:51
+#: computes/templates/computes/balance.html:52
#, python-format
msgid "Proposed migration (%(counter)s)"
msgid_plural "Proposed migrations (%(counter)s)"
msgstr[0] "Önerilen taşımalar (%(counter)s)"
msgstr[1] "Önerilen taşımalar (%(counter)s)"
-#: computes/templates/computes/balance.html:56
+#: computes/templates/computes/balance.html:57
#: computes/templates/computes/bulk_migrate.html:52
msgid "Select all"
msgstr "Tümünü seç"
-#: computes/templates/computes/balance.html:60
+#: computes/templates/computes/balance.html:61
msgid "Migration"
msgstr "Taşıma"
-#: computes/templates/computes/balance.html:81
+#: computes/templates/computes/balance.html:82
#: computes/templates/computes/bulk_migrate.html:87
msgid "Migrations at once"
msgstr "Aynı anda taşıma"
-#: computes/templates/computes/balance.html:85
+#: computes/templates/computes/balance.html:86
#, python-format
msgid "Migrate %(counter)s VM"
msgid_plural "Migrate %(counter)s VMs"
msgstr[0] "%(counter)s sanal makineyi taşı"
msgstr[1] "%(counter)s sanal makineyi taşı"
-#: computes/templates/computes/balance.html:86
+#: computes/templates/computes/balance.html:87
msgid "Migrate the VMs listed?"
msgstr "Listelenen sanal makineler taşınsın mı?"
-#: computes/templates/computes/balance.html:88
+#: computes/templates/computes/balance.html:89
#: computes/templates/computes/bulk_migrate.html:27
msgid ""
"The worker runs one job at a time: set Worker Concurrency to 2 or more on the"
@@ -2165,25 +2176,25 @@ msgstr ""
"İş yürütücü aynı anda tek iş çalıştırıyor: Ayarlar sayfasında Eş zamanlı iş "
"sayısı değerini 2 veya daha fazla yapın."
-#: computes/templates/computes/balance.html:93
+#: computes/templates/computes/balance.html:94
msgid "The hosts are balanced: no migration would even them out more."
msgstr "Sunucular dengeli: onları daha fazla dengeleyecek bir taşıma yok."
-#: computes/templates/computes/balance.html:98
+#: computes/templates/computes/balance.html:99
msgid "Stay where they are"
msgstr "Yerinde kalanlar"
-#: computes/templates/computes/balance.html:103
-#: computes/templates/computes/balance.html:112
+#: computes/templates/computes/balance.html:104
+#: computes/templates/computes/balance.html:113
msgid "Let it move"
msgstr "Taşınabilsin"
-#: computes/templates/computes/balance.html:106
+#: computes/templates/computes/balance.html:107
#: computes/templates/computes/bulk_migrate.html:58
msgid "Why"
msgstr "Neden"
-#: computes/templates/computes/balance.html:115
+#: computes/templates/computes/balance.html:116
msgid "You kept it here: tick it to let it move"
msgstr "Yerinde tuttunuz: taşınabilmesi için işaretleyin"
@@ -2312,14 +2323,6 @@ msgid_plural "%(counter)s more pools"
msgstr[0] "%(counter)s havuz daha"
msgstr[1] "%(counter)s havuz daha"
-#: computes/templates/computes/capacity_vcpus.html:4
-#: computes/templates/computes/list.html:42
-#, python-format
-msgid "on %(counter)s CPU"
-msgid_plural "on %(counter)s CPUs"
-msgstr[0] "%(counter)s CPU üzerinde"
-msgstr[1] "%(counter)s CPU üzerinde"
-
#: computes/templates/computes/capacity_vcpus.html:6
msgid ""
"Dark: running VMs. Light: shut-off VMs, which take their vCPUs again when "
@@ -2737,16 +2740,16 @@ msgstr ""
msgid "The host did not answer within %(seconds)s seconds"
msgstr "Sunucu %(seconds)s saniye içinde yanıt vermedi"
-#: computes/views.py:324
+#: computes/views.py:326
msgid "No other host has room for it"
msgstr "Başka hiçbir sunucuda ona yer yok"
-#: computes/views.py:397
+#: computes/views.py:399
#, python-format
msgid "The host was saved, but the panel cannot connect to it: %(error)s"
msgstr "Sunucu kaydedildi, ancak panel ona bağlanamıyor: %(error)s"
-#: computes/views.py:453
+#: computes/views.py:455
#, python-format
msgid ""
"Its VMs keep running on the host and leave the panel; their owners are kept "
diff --git a/locale/zh/LC_MESSAGES/django.mo b/locale/zh/LC_MESSAGES/django.mo
index 5c02c674..3cf84445 100644
Binary files a/locale/zh/LC_MESSAGES/django.mo and b/locale/zh/LC_MESSAGES/django.mo differ
diff --git a/locale/zh/LC_MESSAGES/django.po b/locale/zh/LC_MESSAGES/django.po
index 5d808b80..4c8a407c 100644
--- a/locale/zh/LC_MESSAGES/django.po
+++ b/locale/zh/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-11-16 07:18+0000\n"
+"POT-Creation-Date: 2026-11-16 10:39+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -61,8 +61,8 @@ msgstr "公钥已存在"
msgid "Invalid key"
msgstr "无效的密钥"
-#: accounts/forms.py:95 computes/templates/computes/balance.html:57
-#: computes/templates/computes/balance.html:104
+#: accounts/forms.py:95 computes/templates/computes/balance.html:58
+#: computes/templates/computes/balance.html:105
#: computes/templates/computes/bulk_migrate.html:53
#: computes/templates/computes/instances.html:46
#: instances/templates/add_instance_volume.html:39
@@ -233,7 +233,7 @@ msgid "Add VM"
msgstr "添加虚拟机"
#: accounts/templates/account.html:68 admin/templates/admin/logs.html:40
-#: computes/templates/computes/balance.html:105
+#: computes/templates/computes/balance.html:106
#: computes/templates/computes/list.html:59
#: instances/templates/allinstances.html:108
#: instances/templates/allinstances_index_nongrouped.html:8
@@ -748,7 +748,7 @@ msgstr "NEW_USER_DEFAULT_INSTANCES:%(name)s 已有所有者,且只允许一
msgid "vCPUs"
msgstr "vCPU"
-#: admin/forms.py:209 computes/templates/computes/balance.html:58
+#: admin/forms.py:209 computes/templates/computes/balance.html:59
#: computes/templates/computes/bulk_migrate.html:55
#: computes/templates/computes/instances.html:50
#: computes/templates/computes/list.html:62 computes/templates/overview.html:66
@@ -1990,7 +1990,7 @@ msgstr "其虚拟机所在的主机尚不明确:请在面板通过当前连接
msgid "This is another host than the one its VMs are on: add it as a new host"
msgstr "这不是其虚拟机所在的主机:请将其添加为新主机"
-#: computes/reach.py:56
+#: computes/reach.py:60
msgid ""
"A disk file is not on storage both hosts share: migrate it from its page"
msgstr "有磁盘文件不在两台主机共享的存储上:请在该虚拟机的页面上迁移它"
@@ -2003,100 +2003,109 @@ msgstr "计算节点"
#: computes/templates/computes/balance.html:15
msgid ""
-"Migrations that share the memory, then the vCPUs, of running VMs evenly among"
-" the hosts."
-msgstr "在各主机之间均衡分配运行中虚拟机的内存(其次是 vCPU)的迁移。"
+"Migrations that give each host about the same share of its memory, then of "
+"its CPUs, for its running VMs: a host twice as large takes twice as much."
+msgstr "使每台主机为其运行中的虚拟机分配大致相同比例的内存(其次是 CPU)的迁移:两倍大的主机承担两倍的负载。"
#: computes/templates/computes/balance.html:17
#: computes/templates/computes/bulk_migrate.html:20
msgid "These hosts cannot be read and are left out:"
msgstr "以下主机无法读取,已排除:"
-#: computes/templates/computes/balance.html:28
+#: computes/templates/computes/balance.html:29
#: instances/templates/instances/snapshots_tab.html:18
msgid "Now"
msgstr "现在"
-#: computes/templates/computes/balance.html:28
+#: computes/templates/computes/balance.html:29
msgid "Running VMs"
msgstr "运行中的虚拟机"
-#: computes/templates/computes/balance.html:29
-#: computes/templates/computes/balance.html:32
+#: computes/templates/computes/balance.html:30
+#: computes/templates/computes/balance.html:33
#: computes/templates/computes/capacity_vcpus.html:4
#, python-format
msgid "%(counter)s vCPU"
msgid_plural "%(counter)s vCPUs"
msgstr[0] "%(counter)s 个 vCPU"
-#: computes/templates/computes/balance.html:31
+#: computes/templates/computes/balance.html:30
+#: computes/templates/computes/balance.html:33
+#: computes/templates/computes/capacity_vcpus.html:4
+#: computes/templates/computes/list.html:42
+#, python-format
+msgid "on %(counter)s CPU"
+msgid_plural "on %(counter)s CPUs"
+msgstr[0] "基于 %(counter)s 个 CPU"
+
+#: computes/templates/computes/balance.html:32
msgid "After"
msgstr "之后"
-#: computes/templates/computes/balance.html:34
+#: computes/templates/computes/balance.html:35
msgid "Memory now"
msgstr "当前内存"
-#: computes/templates/computes/balance.html:34
+#: computes/templates/computes/balance.html:35
msgid "Memory after"
msgstr "迁移后内存"
-#: computes/templates/computes/balance.html:51
+#: computes/templates/computes/balance.html:52
#, python-format
msgid "Proposed migration (%(counter)s)"
msgid_plural "Proposed migrations (%(counter)s)"
msgstr[0] "建议的迁移(%(counter)s)"
-#: computes/templates/computes/balance.html:56
+#: computes/templates/computes/balance.html:57
#: computes/templates/computes/bulk_migrate.html:52
msgid "Select all"
msgstr "全选"
-#: computes/templates/computes/balance.html:60
+#: computes/templates/computes/balance.html:61
msgid "Migration"
msgstr "迁移"
-#: computes/templates/computes/balance.html:81
+#: computes/templates/computes/balance.html:82
#: computes/templates/computes/bulk_migrate.html:87
msgid "Migrations at once"
msgstr "同时迁移数"
-#: computes/templates/computes/balance.html:85
+#: computes/templates/computes/balance.html:86
#, python-format
msgid "Migrate %(counter)s VM"
msgid_plural "Migrate %(counter)s VMs"
msgstr[0] "迁移 %(counter)s 台虚拟机"
-#: computes/templates/computes/balance.html:86
+#: computes/templates/computes/balance.html:87
msgid "Migrate the VMs listed?"
msgstr "迁移列出的虚拟机?"
-#: computes/templates/computes/balance.html:88
+#: computes/templates/computes/balance.html:89
#: computes/templates/computes/bulk_migrate.html:27
msgid ""
"The worker runs one job at a time: set Worker Concurrency to 2 or more on the"
" Settings page."
msgstr "任务执行器一次只运行一个任务:请在设置页面将工作进程并发数设为 2 或更大。"
-#: computes/templates/computes/balance.html:93
+#: computes/templates/computes/balance.html:94
msgid "The hosts are balanced: no migration would even them out more."
msgstr "主机已均衡:没有能使其更均衡的迁移。"
-#: computes/templates/computes/balance.html:98
+#: computes/templates/computes/balance.html:99
msgid "Stay where they are"
msgstr "留在原处"
-#: computes/templates/computes/balance.html:103
-#: computes/templates/computes/balance.html:112
+#: computes/templates/computes/balance.html:104
+#: computes/templates/computes/balance.html:113
msgid "Let it move"
msgstr "允许迁移"
-#: computes/templates/computes/balance.html:106
+#: computes/templates/computes/balance.html:107
#: computes/templates/computes/bulk_migrate.html:58
msgid "Why"
msgstr "原因"
-#: computes/templates/computes/balance.html:115
+#: computes/templates/computes/balance.html:116
msgid "You kept it here: tick it to let it move"
msgstr "您将其保留在原处:勾选后即可迁移"
@@ -2211,13 +2220,6 @@ msgid "%(counter)s more pool"
msgid_plural "%(counter)s more pools"
msgstr[0] "另有 %(counter)s 个存储池"
-#: computes/templates/computes/capacity_vcpus.html:4
-#: computes/templates/computes/list.html:42
-#, python-format
-msgid "on %(counter)s CPU"
-msgid_plural "on %(counter)s CPUs"
-msgstr[0] "基于 %(counter)s 个 CPU"
-
#: computes/templates/computes/capacity_vcpus.html:6
msgid ""
"Dark: running VMs. Light: shut-off VMs, which take their vCPUs again when "
@@ -2625,16 +2627,16 @@ msgstr "请输入主机 /etc/default/webvirt-gstfsd 中 GSTFSD_KEY 的 64 个十
msgid "The host did not answer within %(seconds)s seconds"
msgstr "主机未在 %(seconds)s 秒内响应"
-#: computes/views.py:324
+#: computes/views.py:326
msgid "No other host has room for it"
msgstr "没有其他主机能容纳它"
-#: computes/views.py:397
+#: computes/views.py:399
#, python-format
msgid "The host was saved, but the panel cannot connect to it: %(error)s"
msgstr "主机已保存,但面板无法连接到它:%(error)s"
-#: computes/views.py:453
+#: computes/views.py:455
#, python-format
msgid ""
"Its VMs keep running on the host and leave the panel; their owners are kept "