如何针对 Azure Stack Hub 上的事件中心进行容量规划How to do capacity planning for Event Hubs on Azure Stack Hub

Important

Azure Stack 中心上的事件中心目前处于预览阶段,在预览期间可免费使用。Event Hubs on Azure Stack Hub is currently in preview, and is provided free during the preview period.

作为操作员,你可以对资源使用配额,通过这种方式管理 Azure Stack Hub 容量。As an Operator you manage your Azure Stack Hub capacity using quotas on resources. 可以针对事件中心群集使用的最大核心数设置配额,来控制事件中心资源的消耗。You control Event Hubs resource consumption by setting quotas on the maximum number of cores use by Event Hubs clusters. 事件中心群集是用户在部署事件中心资源时创建的。Event Hubs clusters are created by users when they deploy an Event Hubs resource. 资源提供程序也有各种资源消耗需求,本文对此进行了介绍。There are also various resource consumption requirements for the resource provider, which are covered in this article.

群集资源消耗Cluster resource consumption

为了了解进行事件中心部署时的容量消耗情况,必须注意用户是基于容量单位 (CU) 创建事件中心群集的。To understand capacity consumption of Event Hubs deployments, it's important to note that users create Event Hubs clusters based on Capacity Units (CUs). 用户不会在创建事件中心群集时指定 CPU 核心计数。They don't specify a CPU core count when creating an Event Hubs cluster. 但是,每个 CU 会直接映射到特定数目的已使用核心。However, every CU directly maps to a specific number of cores consumed.

用户需要创建具有满足其业务需求的 CU 数目的事件中心群集。Your users will need to create Event Hubs clusters with CUs that meet their business requirements. 下表显示的内容有助于你进行配额配置决策:To inform your decision on quota configuration, the following table shows:

  • 单 CU 事件中心群集使用的总核心数。The total cores used by a 1 CU Event Hubs cluster.
  • 使用其他资源(包括 VM 存储、内存和存储帐户)时所需的大致容量。The approximate capacity required for consumption of other resources, including VM storage, memory, and storage accounts.
VM 类型VM Type 群集节点数Cluster Nodes 每个 VM/节点的核心数Cores per VM/node 核心总数Total Cores VM 存储VM Storage 内存Memory 存储帐户Storage Accounts 公共 IPPublic IPs
单 CU 事件中心群集1 CU Event Hubs cluster D11_V2D11_V2 55 22 10 个10 500 GiB500 GiB 70 GiB70 GiB 44 11

所有事件中心群集都对其节点使用 D11_V2 VM 类型。All Event Hubs clusters use a D11_V2 VM type for their nodes. D11_V2 VM 类型包含 2 个核心。A D11_V2 VM type consists of 2 cores. 因此,单 CU 事件中心群集使用 5 个 D11_V2 VM,这相当于使用 10 个核心。So 1 CU Event Hubs cluster uses 5 D11_V2 VMs, which translates into 10 cores used. 请使用单 CU 所用总核心数的倍数来确定要为某个配额配置的核心数。In determining the number of cores to configure for a quota, use a multiple of the total cores used by 1 CU. 此计算反映了当用户创建事件中心群集时可以使用的最大 CU 计数。This calculation reflects the maximum CU count you'll allow your users to use, when creating Event Hubs clusters. 例如,若要配置一个配额,允许用户创建容量为 2 个 CU 的群集,请将配额设置为 20 个核心。For example, to configure a quota that allows users to create a cluster with 2 CUs of capacity, set your quota at 20 cores.

Note

仅针对公共预览版:Azure Stack Hub 上提供的事件中心版本只支持创建单 CU 群集。Public preview only The available version of Event Hubs on Azure Stack Hub only supports the creation of 1 CU clusters. 事件中心的正式发布 (GA) 版会支持各种不同的 CU 配置选项。The General Availability (GA) version of Event Hubs will include support for different CU configuration options.

资源提供程序的资源消耗Resource provider resource consumption

事件中心资源提供程序的资源消耗是恒定的,与用户创建的群集的数量或大小无关。The resource consumption by the Event Hubs resource provider is constant, and independent of the number or sizes of clusters created by users. 下表显示了 Azure Stack Hub 上的事件中心资源提供程序使用的核心数量,以及其他资源的大致消耗量。The following table shows the core utilization by the Event Hubs resource provider on Azure Stack Hub, and the approximate resource consumption by other resources. 事件中心资源提供程序对其部署使用 D2_V2 VM 类型。The Event Hubs resource provider uses a D2_V2 VM type for its deployment.

VM 类型VM Type 群集节点数Cluster Nodes 核心数Cores VM 存储VM Storage 内存Memory 存储帐户Storage Accounts 公共 IPPublic IPs
事件中心资源提供程序Event Hubs resource provider D2_V2D2_V2 33 66 300 GiB300 GiB 21 GiB21 GiB 22 11

Important

资源提供程序的资源消耗不由配额控制。Resource provider consumption is not something that is controlled by quotas. 你不需要在你的配额配置中提供由资源提供程序使用的核心。You do not need to accommodate the cores used by the resource provider in your quota configurations. 资源提供程序是使用管理员订阅进行安装的。Resource providers are installed using an administrator subscription. 该订阅不会在操作员安装所需的资源提供程序时对操作员施加资源消耗限制。The subscription does not impose resource consumption limits on operators, when installing their required resource providers.

资源总消耗量Total resource consumption

事件中心服务消耗的总容量包括资源提供程序消耗的资源,以及用户创建的群集消耗的资源。The total capacity consumed by the Event Hubs service includes resource consumption by the resource provider, and consumption by user-created clusters.

下表显示了不同配置下事件中心的总消耗量,不管它们是否受配额控制。The following table shows the total Event Hubs consumption under various configurations, regardless if they're managed by quota. 这些数字基于上面提供的资源提供程序和事件中心群集的资源消耗量。These numbers are based on the resource provider and Event Hubs cluster consumptions presented above. 对于其他部署大小,你可以根据这些示例轻松地计算出 Azure Stack Hub 的总使用量。You can easily calculate your total Azure Stack Hub usage for other deployment sizes, using these examples.

核心数Cores VM 存储VM Storage 内存Memory 存储帐户Storage Accounts 总存储*Total Storage* 公共 IP**Public IPs**
单 CU 群集 + 资源提供程序1-CU cluster + resource provider 1616 800 GiB800 GiB 91 GiB91 GiB 66 可变variable 22
双 CU 群集 + 资源提供程序2-CU cluster + resource provider 2626 1.3 TB1.3 TB 161 GiB161 GiB 10 个10 可变variable 22
四 CU 群集 + 资源提供程序4-CU cluster + resource provider 4646 2.3 TB2.3 TB 301 GiB301 GiB 1818 可变variable 22

* 数据块(消息/事件)引入速率和消息保留期是影响事件中心群集所用存储的两个重要因素。* The ingress data block (message/event) rate and message retention are two important factors that contribute to the storage used by Event Hubs clusters. 例如,如果在创建事件中心时将消息保留期设置为 7 天,且消息的引入速率为 1MB/秒,则使用的存储大约为 604 GB(1 MB x 60 秒 x 60 分钟 x 24 小时 x 7 天)。For example, if message retention is set to 7 days when creating an event hub, and messages are ingested at a rate of 1MB/s, the approximate storage used is 604 GB (1 MB x 60 seconds x 60 minutes x 24 hours X 7 days). 如果消息发送速率为 20MB/秒,且保留期为 7 天,则存储消耗量大约为 12TB。If messages are sent at a rate of 20MB/s with a 7 days retention, the approximate storage consumption is 12TB. 请务必考虑数据流入速率和保留时间,这样才能充分了解存储容量的消耗情况。Be sure to consider ingress data rate and retention time to fully understand storage capacity consumption.

** 使用的公共 IP 地址来自作为订阅的一部分提供的网络配额** Public IP addresses are consumed from the network quota provided as part of your subscription.

后续步骤Next steps

在开始安装过程之前,请完成在 Azure Stack Hub 上安装事件中心的先决条件一文中的操作。Complete the Prerequisites for installing Event Hubs on Azure Stack Hub, before beginning the installation process.