Eine regionale verwaltete Instanzgruppe (MIG) ist nicht ausgeglichen, wenn sich die Anzahl der VMs in zwei Zonen um mindestens zwei VMs unterscheidet. Eine regionale MIG kann nicht mehr ausgeglichen werden, wenn Sie die proaktive Umverteilung von Instanzen deaktivieren und dann Instanzen löschen oder verwerfen, um eine ungleichmäßige Verteilung zwischen Zonen zu erreichen.
Wenn Ihre Gruppe nicht ausgeglichen ist und Sie die proaktive Instanzverteilung wieder aktivieren möchten, müssen Sie die gruppe zuerst manuell neu ausgleichen, um eine gleichmäßige Verteilung der Instanzen auf Zonen zu erreichen.
Manuell ausgleichen – durch Löschen von VMs oder Anpassen der Größe
Sie können die Gruppe manuell ausgleichen und so eine gleichmäßige Verteilung von Instanzen auf Zonen erreichen, indem Sie VMs aus Zonen mit mehr Instanzen löschen oder die Größe der Gruppe anpassen um Instanzen zu Zonen mit weniger VMs hinzuzufügen, bis die Verteilung gleichmäßig ist.
Wenn Sie die Größe einer MIG ändern, bei der die proaktive Umverteilung von Instanzen deaktiviert ist, nähert sich die Gruppe trotzdem weiter opportunistisch einer gleichmäßigen Verteilung an. Jeder Vorgang der Größenänderung wird dabei als Gelegenheit betrachtet, die Gruppe auszugleichen.
Wenn die Gruppe wächst, versucht sie immer, den Zonen mit der kleinsten Anzahl von VMs VMs hinzuzufügen.
Wenn die Gruppe hingegen schrumpft, entfernt sie VMs immer aus den Zonen mit der größten Anzahl von VMs.
Beispiel für die manuelle Größenänderung einer Gruppe, um eine gleichmäßige Umverteilung zu erreichen
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-19 (UTC)."],[[["\u003cp\u003eA regional managed instance group (MIG) is considered unbalanced when the difference in virtual machines (VMs) between two zones is two or more.\u003c/p\u003e\n"],["\u003cp\u003eManually rebalancing an unbalanced MIG involves deleting VMs from zones with more instances or resizing the group to add instances to zones with fewer VMs.\u003c/p\u003e\n"],["\u003cp\u003eEven with proactive instance redistribution turned off, resizing a MIG will cause it to opportunistically converge toward balance by adding VMs to zones with the fewest or removing them from the zones with the most.\u003c/p\u003e\n"],["\u003cp\u003eRe-enabling proactive redistribution requires an initial manual rebalancing of the MIG to ensure an even distribution of instances across zones.\u003c/p\u003e\n"]]],[],null,["*** ** * ** ***\n\nA\n[regional managed instance group (MIG)](/compute/docs/instance-groups#managed_instance_groups)\nis not balanced if the difference in the number of VMs between\ntwo zones is 2 or more VMs. A regional MIG can fall out of balance if you\ndisable\n[proactive instance redistribution](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\nand then delete or abandon instances to cause an uneven distribution across\nzones.\n\nIf your group is not balanced and you want to re-enable proactive instance\ndistribution, you must first manually rebalance your group to achieve an even\ndistribution of instances across zones.\n\nManually rebalance by deleting VMs or resizing the group\n\nYou can manually rebalance your group to achieve an even distribution of\ninstances across zones by\n[deleting](/compute/docs/instance-groups/add-remove-vms-in-mig#delete_from_group)\nVMs from zones with more instances or by\n[resizing](/compute/docs/instance-groups/add-remove-vms-in-mig#resize_managed_group)\nto add instances to zones with fewer VMs until the distribution is even.\n\nWhen you resize a MIG that has proactive instance redistribution turned off,\nthe group still *opportunistically* converges toward balance, treating each\nresize operation as an opportunity to balance the group:\n\n- When the group grows, the group always tries to add VMs to the zones with the smallest number of VMs.\n- When the group shrinks, the group always removes VMs from the zones with the largest number of VMs.\n\n[](/static/compute/images/rmig-manual-redistribution.svg) *Example of manually resizing a group to achieve even redistribution*\n\nWhat's next\n\n- Learn how to re-enable or disable [proactive redistribution](/compute/docs/instance-groups/regional-mig-enable-disable-proactive-redistribution).\n- Learn how to set a regional MIG's [target distribution shape](/compute/docs/instance-groups/regional-mig-set-target-distribution-shape)."]]