将加速网络与 Azure 虚拟机灾难恢复配合使用Accelerated Networking with Azure virtual machine disaster recovery

使用加速网络可以实现对 VM 的单根 I/O 虚拟化 (SR-IOV),大幅提升其网络性能。Accelerated Networking enables single root I/O virtualization (SR-IOV) to a VM, greatly improving its networking performance. 这种高性能路径会绕过数据路径中的主机,降低延迟、抖动,以及受支持 VM 类型上的最苛刻网络工作负荷的 CPU 利用率。This high-performance path bypasses the host from the datapath, reducing latency, jitter, and CPU utilization, for use with the most demanding network workloads on supported VM types. 下图显示了具有和没有加速网络的两个 VM 之间的通信:The following picture shows communication between two VMs with and without accelerated networking:

比较

对于故障转移到不同 Azure 区域的 Azure 虚拟机,Azure Site Recovery 允许你利用加速网络的优势。Azure Site Recovery enables you to utilize the benefits of Accelerated Networking, for Azure virtual machines that are failed over to a different Azure region. 本文介绍了如何为通过 Azure Site Recovery 复制的 Azure 虚拟机启用加速网络。This article describes how you can enable Accelerated Networking for Azure virtual machines replicated with Azure Site Recovery.

必备条件Prerequisites

在开始之前,请确保了解:Before you begin, ensure that you understand:

Windows VM 的加速网络Accelerated Networking with Windows VMs

只有当源虚拟机已启用了加速网络时,Azure Site Recovery 才支持为复制的虚拟机启用加速网络。Azure Site Recovery supports enabling Accelerated Networking for replicated virtual machines only if the source virtual machine has Accelerated Networking enabled. 如果源虚拟机未启用加速网络,可以从此处了解如何为 Windows 虚拟机启用加速网络。If your source virtual machine does not have Accelerated Networking enabled, you can learn how to enable Accelerated Networking for Windows virtual machines here.

支持的操作系统Supported operating systems

从 Azure 库即可支持以下分发:The following distributions are supported out of the box from the Azure Gallery:

  • Windows Server 2016 DatacenterWindows Server 2016 Datacenter
  • Windows Server 2012 R2 DatacenterWindows Server 2012 R2 Datacenter

支持的 VM 实例Supported VM instances

大多数常规用途实例以及具有 2 个或更多 vCPU 的计算优化实例都支持加速网络。Accelerated Networking is supported on most general purpose and compute-optimized instance sizes with 2 or more vCPUs. 这些受支持的系列包括 D/DSv2 和 F/FsThese supported series are: D/DSv2 and F/Fs

在支持超线程的实例上,具有 4 个或更多 vCPU 的 VM 实例支持加速网络。On instances that support hyperthreading, Accelerated Networking is supported on VM instances with 4 or more vCPUs. 受支持的系列包括 D/DSv3、E/ESv3、Fsv2 和 Ms/MmsSupported series are: D/DSv3, E/ESv3, Fsv2, and Ms/Mms

有关 VM 实例的详细信息,请参阅Windows VM 大小For more information on VM instances, see Windows VM sizes.

Linux VM 的加速网络Accelerated Networking with Linux VMs

只有当源虚拟机已启用了加速网络时,Azure Site Recovery 才支持为复制的虚拟机启用加速网络。Azure Site Recovery supports enabling Accelerated Networking for replicated virtual machines only if the source virtual machine has Accelerated Networking enabled. 如果源虚拟机未启用加速网络,可以从此处了解如何为 Linux 虚拟机启用加速网络。If your source virtual machine does not have Accelerated Networking enabled, you can learn how to enable Accelerated Networking for Linux virtual machines here.

支持的操作系统Supported operating systems

从 Azure 库即可支持以下分发:The following distributions are supported out of the box from the Azure Gallery:

  • Ubuntu 16.04Ubuntu 16.04
  • SLES 12 SP3SLES 12 SP3
  • CentOS 7.4CentOS 7.4
  • CoreOS LinuxCoreOS Linux
  • Debian“Stretch”(backport 内核)Debian "Stretch" with backports kernel

支持的 VM 实例Supported VM instances

大多数常规用途实例以及具有 2 个或更多 vCPU 的计算优化实例都支持加速网络。Accelerated Networking is supported on most general purpose and compute-optimized instance sizes with 2 or more vCPUs. 这些受支持的系列包括 D/DSv2 和 F/FsThese supported series are: D/DSv2 and F/Fs

在支持超线程的实例上,具有 4 个或更多 vCPU 的 VM 实例支持加速网络。On instances that support hyperthreading, Accelerated Networking is supported on VM instances with 4 or more vCPUs. 受到支持的系列包括 D/DSv3、E/ESv3、Fsv2 和 Ms/Mms。Supported series are: D/DSv3, E/ESv3, Fsv2, and Ms/Mms.

有关 VM 实例的详细信息,请参阅Linux VM 大小For more information on VM instances, see Linux VM sizes.

为复制的 VM 启用加速网络Enabling Accelerated Networking for replicated VMs

为 Azure 虚拟机启用复制时,Site Recovery 将自动检测虚拟机网络接口是否启用了加速网络。When you enable replication for Azure virtual machines, Site Recovery will automatically detect whether the virtual machine network interfaces have Accelerated Networking enabled. 如果已启用加速网络,则 Site Recovery 将自动在复制的虚拟机的网络接口上配置加速网络。If Accelerated Networking is already enabled, Site Recovery will automatically configure Accelerated Networking on the network interfaces of the replicated virtual machine.

可以在复制的虚拟机的“计算和网络”设置的“网络接口”部分下验证加速网络的状态。 The status of Accelerated Networking can be verified under the Network interfaces section of the Compute and Network settings for the replicated virtual machine.

加速网络设置

如果在启用复制后在源虚拟机上启用了加速网络,则可以通过以下过程为复制的虚拟机的网络接口启用加速网络:If you have enabled Accelerated Networking on the source virtual machine after enabling replication, you can enable Accelerated Networking for the replicated virtual machine's network interfaces by the following process:

  1. 打开复制的虚拟机的“计算和网络” 设置Open Compute and Network settings for the replicated virtual machine
  2. 在“网络接口”部分下单击网络接口的名称 Click on the name of the network interface under the Network interfaces section
  3. 在“目标”列下,从“加速网络”的下拉列表中选择“启用”。 Select Enabled from the dropdown for Accelerated Networking under the Target column

启用加速网络

对于 Site Recovery 以前未自动启用加速网络的现有复制虚拟机,也应当遵循上述过程。The above process should also be followed for existing replicated virtual machines, that did not previously have Accelerated Networking enabled automatically by Site Recovery.

后续步骤Next steps