使用 Auto Scale 维护最小数量的 Microsoft Azure 虚拟机实例
Maintaining Minimum amount of Microsoft Azure virtual machines instances with Auto Scale
我目前正在研究 Microsoft Azure 虚拟机,有以下内容。
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-autoscale
但是,我不确定我是否正确理解了描述。
在我设置最小容量为 3 和最大容量为 6 的 VM 后,自动缩放将平衡我的 VM 数量。
但是,虽然我有 3 个实例,但其中一个实例出现了某种错误并关闭了?会发生什么?
Auto Scale 会添加额外的 VM 以维持最小数量,还是他们不添加 VM?
However, while I have the 3 instances and one of the instances got
some kinds of error and shutdown? what will happen?
这取决于您的缩放规则。我在我的实验室测试,我的规则是:scale out (Average) Percentage CPU >75, scale in (Average) Percentage CPU <25。当我关闭 VM 内部的 VM 时,Azure 可以检查实例是否已关闭,但它不会扩展新的 VM。原因是我的实例不符合扩展规则。当VM的百分比CPU>75时,它会横向扩展一个实例(这取决于你的扩展规则)。
有关此的更多信息,请参阅此 link:How to use automatic scaling and Virtual Machine Scale Sets。
我目前正在研究 Microsoft Azure 虚拟机,有以下内容。
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-autoscale
但是,我不确定我是否正确理解了描述。 在我设置最小容量为 3 和最大容量为 6 的 VM 后,自动缩放将平衡我的 VM 数量。
但是,虽然我有 3 个实例,但其中一个实例出现了某种错误并关闭了?会发生什么?
Auto Scale 会添加额外的 VM 以维持最小数量,还是他们不添加 VM?
However, while I have the 3 instances and one of the instances got some kinds of error and shutdown? what will happen?
这取决于您的缩放规则。我在我的实验室测试,我的规则是:scale out (Average) Percentage CPU >75, scale in (Average) Percentage CPU <25。当我关闭 VM 内部的 VM 时,Azure 可以检查实例是否已关闭,但它不会扩展新的 VM。原因是我的实例不符合扩展规则。当VM的百分比CPU>75时,它会横向扩展一个实例(这取决于你的扩展规则)。
有关此的更多信息,请参阅此 link:How to use automatic scaling and Virtual Machine Scale Sets。