Azure 虚拟机可用性选项Availability options for Azure Virtual Machines

本文概述了 Azure 虚拟机 (VM) 的可用性选项。This article provides an overview of the availability options for Azure virtual machines (VMs).

可用性集Availability sets

可用性集是 VM 的逻辑分组,可让 Azure 了解应用程序的构建方式,以便提供冗余和可用性。An availability set is a logical grouping of VMs that allows Azure to understand how your application is built to provide for redundancy and availability. 建议在可用性集内创建两个或多个 VM,提供高度可用的应用程序,并满足 99.95% Azure SLA 的要求。We recommended that two or more VMs are created within an availability set to provide for a highly available application and to meet the 99.95% Azure SLA. 可用性集本身是免费的,只需为创建的每个 VM 实例付费。There is no cost for the Availability Set itself, you only pay for each VM instance that you create.

虚拟机规模集Virtual Machines Scale Sets

使用 Azure 虚拟机规模集可以创建并管理一组负载均衡的 VM。Azure virtual machine scale sets let you create and manage a group of load balanced VMs. 可以根据需求或定义的计划自动增减 VM 实例的数目。The number of VM instances can automatically increase or decrease in response to demand or a defined schedule. 规模集为应用程序提供高可用性,用于集中管理、配置和更新许多 VM。Scale sets provide high availability to your applications, and allow you to centrally manage, configure, and update many VMs. 建议在一个规模集内创建两个或多个 VM,使应用程序高度可用,并满足 99.95% Azure SLA 的要求。We recommended that two or more VMs are created within a scale set to provide for a highly available application and to meet the 99.95% Azure SLA. 规模集本身是免费的,你只需为创建的每个 VM 实例付费。There is no cost for the scale set itself, you only pay for each VM instance that you create.

负载均衡器Load balancer

Azure 负载均衡器与可用性集组合在一起,以获取最大的应用程序复原能力。Combine the Azure Load Balancer with an availability set to get the most application resiliency. Azure 负载均衡器将流量分布到多个虚拟机中。The Azure Load Balancer distributes traffic between multiple virtual machines. 对于标准层虚拟机来说,Azure 负载均衡器已包括在内。For our Standard tier virtual machines, the Azure Load Balancer is included. 并非所有虚拟机层都包括 Azure 负载均衡器。Not all virtual machine tiers include the Azure Load Balancer. 有关对虚拟机进行负载均衡的更多信息,请阅读对 LinuxWindows 虚拟机进行负载均衡。For more information about load balancing your virtual machines, see Load Balancing virtual machines for Linux or Windows.

Azure 存储冗余Azure Storage redundancy

Azure 存储始终会存储数据的多个副本,以防范各种计划内和计划外的事件,包括暂时性的硬件故障、网络中断或断电、大范围自然灾害等。Azure Storage always stores multiple copies of your data so that it is protected from planned and unplanned events, including transient hardware failures, network or power outages, and massive natural disasters. 冗余可确保即使遇到故障,存储帐户也能达到其可用性和持久性目标。Redundancy ensures that your storage account meets its availability and durability targets even in the face of failures.

在确定最适合自己方案的冗余选项时,请考虑如何在较低成本与较高可用性之间做出取舍。When deciding which redundancy option is best for your scenario, consider the tradeoffs between lower costs and higher availability. 可帮助你确定应选择哪种冗余选项的因素包括:The factors that help determine which redundancy option you should choose include:

  • 如何在主要区域中复制数据How your data is replicated in the primary region
  • 是否要将你的数据复制到地理上距主要区域较远的另一个区域,以防范区域性灾难Whether your data is replicated to a second region that is geographically distant to the primary region, to protect against regional disasters
  • 应用程序是否要求在主要区域出于任何原因而不可用时,能够对次要区域中复制的数据进行读取访问Whether your application requires read access to the replicated data in the secondary region if the primary region becomes unavailable for any reason

有关详细信息,请参阅 Azure 存储冗余For more information, see Azure Storage redundancy

Azure Site RecoveryAzure Site Recovery

组织需采用业务连续性和灾难恢复 (BCDR) 策略,在发生计划内和计划外停机时确保数据的安全以及应用和工作负载的联机。As an organization you need to adopt a business continuity and disaster recovery (BCDR) strategy that keeps your data safe, and your apps and workloads online, when planned and unplanned outages occur.

Azure Site Recovery 有助于保持业务应用和工作负载在停机期间的正常运行,从而确保业务连续性。Azure Site Recovery helps ensure business continuity by keeping business apps and workloads running during outages. Site Recovery 将在物理机和虚拟机 (VM) 上运行的工作负荷从主站点复制到辅助位置。Site Recovery replicates workloads running on physical and virtual machines (VMs) from a primary site to a secondary location. 主站点发生停机时,可以故障转移到辅助位置,从该位置访问应用。When an outage occurs at your primary site, you fail over to secondary location, and access apps from there. 在主位置再次运行后,可以故障回复到该位置。After the primary location is running again, you can fail back to it.

Site Recovery 可以为以下计算机管理复制:Site Recovery can manage replication for:

  • 在 Azure 区域之间进行复制的 Azure VM。Azure VMs replicating between Azure regions.
  • 本地 VM、 Azure Stack VM 和物理服务器。On-premises VMs, Azure Stack VMs, and physical servers.

后续步骤Next steps