简体   繁体   English

Azure VM升级或降级停机时间

[英]Azure VM upgrade or downgrade downtime

It's my first time using Azure and I am so used to AWS. 这是我第一次使用Azure,而我已经习惯了AWS。 In AWS when you downgrade or upgrade your instance, a downtime is expected.. In Azure documentation there is no downtime specified when upgrading or downgrading a VM, does that mean that there is no downtime? 在AWS中,当您降级或升级实例时,预计会发生停机。.在Azure文档中,在升级或降级VM时未指定停机时间,这是否意味着没有停机时间? If there is, how long is the downtime? 如果有,那么停机时间多长?

In Azure, there are two types of Microsoft Azure platform events that can affect the availability of your virtual machines: planned maintenance and unplanned maintenance. 在Azure中,有两种类型的Microsoft Azure平台事件会影响虚拟机的可用性: 计划维护和计划外维护。
To reduce the impact of downtime due to one or more of these events, we recommend the following high availability best practices for your virtual machines: 为了减少由于这些事件中的一个或多个而导致的停机时间的影响,我们建议您为虚拟机使用以下高可用性最佳实践:
1.Configure multiple virtual machines in an availability set for redundancy 1.在可用性集中配置多个虚拟机以实现冗余
2.Configure each application tier into separate availability sets 2.将每个应用程序层配置为单独的可用性集
3.Combine a Load Balancer with availability sets 3,结合可用性集的负载均衡器
4.Use multiple storage accounts for each availability set 4,为每个可用性集使用多个存储帐户

Note: Avoid leaving a single instance virtual machine in an availability set by itself. 注意:避免将单个实例虚拟机留在其自身设置的可用性中。 VMs in this configuration do not qualify for a SLA guarantee and face downtime during Azure planned maintenance events, except when a single VM is using Azure Premium Storage . 此配置中的虚拟机没有资格获得SLA保证,并且在Azure计划的维护事件期间面临停机时间,除非单个虚拟机正在使用Azure高级存储 For single VMs using premium storage, the Azure SLA applies. 对于使用高级存储的单个VM,适用Azure SLA。

More information about SLA for Azure VM, refer to the link . 有关适用于Azure VM的SLA的详细信息,请参阅链接

There's a downtime involved. 涉及停机时间。 Depending on the deployment model (Resource Manager or Classic), resizing would involve either just stopping the VM (former) or deleting and recreating the VM with new size (latter). 根据部署模型(资源管理器或经典),调整大小将涉及仅停止VM(以前)或删除并重新创建具有新大小的VM(后期)。

From https://azure.microsoft.com/en-in/blog/resize-virtual-machines/ : https://azure.microsoft.com/en-in/blog/resize-virtual-machines/中

Resize Resource Manager (ARM) virtual machine s 调整资源管理器(ARM)虚拟机的大小

If your VM(s) are deployed using the Resource Manager (ARM) deployment model you can resize VMs by first stopping your VM, selecting a new VM size and then restarting the VM . 如果使用资源管理器(ARM)部署模型部署VM,则可以通过以下方法调整VM的大小:首先停止VM,选择新的VM大小,然后重新启动VM If the VM you wish to resize is part of an availability set, then you must stop all VMs in the availability set before changing the size of any VM in the availability set. 如果要调整大小的VM是可用性集合的一部分,则必须先更改可用性集合中的所有VM,然后再更改可用性集合中的任何VM的大小。

Resize classic (ASM) virtual machines 调整经典(ASM)虚拟机的大小

Resizing a VM deployed using Classic (ASM) deployment model is more difficult if the new size is not supported by the hardware cluster where the VM is currently deployed. 如果当前部署VM的硬件群集不支持新大小,则调整使用经典(ASM)部署模型部署的VM的大小将更加困难。 Unlike VMs deployed through the Azure Resource Manager deployment model it is not possible to resize the VM while the VM is in a stopped state. 与通过Azure资源管理器部署模型部署的VM不同,在VM处于停止状态时无法调整VM的大小。 So for VMs using the classic deployment model the VMs must be deleted and then recreated using the same OS and data disks . 因此,对于使用经典部署模型的VM,必须先删除VM,然后使用相同的OS和数据磁盘重新创建

Whether you can shut down a VM or not depends on whether the new VM size you want to change is available on the existing hardware cluster and whether the VM is deployed in Availability sets. 是否可以关闭VM取决于要更改的新VM大小在现有硬件群集上是否可用以及该VM是否已部署在可用性集中。

There is a nice article here on Microsoft docs that explain when you can change size without deallocating VM and when you must deallocate VM. 有一个很好的文章在这里对微软文档解释的时候,你可以不重新分配虚拟机,当你必须取消分配VM改变大小。

In short, using Powershell you can change the size of your VM and you do not have to stop and deallocate vm if the new vm size is available on your hardware cluster. 简而言之,使用Powershell可以更改VM的大小,并且如果硬件群集上有新的VM大小,则不必停止并取消分配VM。

Please note that VM still shuts down and restart as a result of the VM size update and typically takes about on an average of 2 min to get it up and running for windows VM without any customization as per my personal experience. 请注意,由于VM大小的更新,VM仍会关闭并重新启动,并且根据我的个人经验,在没有任何自定义的情况下,Windows VM大约平均需要2分钟才能启动并运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM