如何升级 IoT 中心How to upgrade your IoT hub

当 IoT 解决方案扩大时,可以通过 Azure IoT 中心进行纵向扩展。As your IoT solution grows, Azure IoT Hub is ready to help you scale up. Azure IoT 中心提供两个层,即基本层 (B) 和标准层 (S),以便满足希望使用不同功能的客户的需求。Azure IoT Hub offers two tiers, basic (B) and standard (S), to accommodate customers that want to use different features. 每个层中有三种大小(1、2、3),决定了每天可以发送的消息的数目。Within each tier are three sizes (1, 2, and 3) that determine the number of messages that can be sent each day.

当设备增多并需要更多功能时,可以通过三种方式来调整 IoT 中心,使之满足自己的需求:When you have more devices and need more capabilities, there are three ways to adjust your IoT hub to suit your needs:

  • 在 IoT 中心添加单元。Add units within the IoT hub. 例如,在 B1 IoT 中心每增加一个单元,每天的消息数就可以增加 400,000。For example, each additional unit in a B1 IoT hub allows for an additional 400,000 messages per day.
  • 更改 IoT 中心的大小。Change the size of the IoT hub. 例如,从 B1 层迁移到 B2 层即可增加每个单元每天能够支持的消息数。For example, migrate from the B1 tier to the B2 tier to increase the number of messages that each unit can support per day.
  • 升级到更高层。Upgrade to a higher tier. 例如,从 B1 层升级到 S1 层,消息传递容量不变,但可以使用高级功能。For example, upgrade from the B1 tier to the S1 tier for access to advanced features with the same messaging capacity.

这些更改均可在不中断现有操作的情况下进行。These changes can all occur without interrupting existing operations.

若要将 IoT 中心降级,可以删除单元以及缩小 IoT 中心的大小,但无法降级到较低的层。If you want to downgrade your IoT hub, you can remove units and reduce the size of the IoT hub but you cannot downgrade to a lower tier. 例如,可以从 S2 层移到 S1 层,但不能从 S2 层移到 B1 层。For example, you can move from the S2 tier to the S1 tier, but not from the S2 tier to the B1 tier. 每个 IoT 中心在每个层内只能选择一种类型的版本Only one type of edition within a tier can be chosen per IoT Hub. 例如,可以创建具有多个 S1 单元的 IoT 中心,但不能创建混合使用不同版本的单元,例如 S1 和 B3,或者 S1 和 S2。For example, you can create an IoT Hub with multiple units of S1, but not with a mix of units from different editions, such as S1 and B3, or S1 and S2.

这些示例旨在演示如何根据解决方案的变化来调整 IoT 中心。These examples are meant to help you understand how to adjust your IoT hub as your solution changes. 有关每个层的功能的具体信息,则应始终参阅 Azure IoT 中心定价For specific information about each tier's capabilities you should always refer to Azure IoT Hub pricing.

升级现有的 IoT 中心Upgrade your existing IoT hub

  1. 登录 Azure 门户,导航到 IoT 中心。Sign in to the Azure portal and navigate to your IoT hub.

  2. 选择“定价和缩放”。Select Pricing and scale.

    定价和缩放

  3. 若要更改中心的层,请选择“定价和缩放层”。To change the tier for your hub, select Pricing and scale tier. 选择新层,然后单击“选择”。Choose the new tier, then click select.

    定价和缩放层

  4. 若要更改中心的单元数,请在“IoT 中心单元数”下输入新值。To change the number of units in your hub, enter a new value under IoT Hub units.

  5. 选择“保存”以保存更改。Select Save to save your changes.

现在,IoT 中心已进行调整,但配置未更改。Your IoT hub is now adjusted, and your configurations are unchanged.

基本层 IoT 中心和标准层 IoT 中心的最大分区限制为 32。The maximum partition limit for basic tier IoT Hub and standard tier IoT Hub is 32. 大多数 IoT 中心只需要 4 个分区。Most IoT Hubs only need 4 partitions. 分区限制是在创建 IoT 中心时选择的,它将设备到云消息关联到这些消息的并行读取器的数目。The partition limit is chosen when IoT Hub is created, and relates the device-to-cloud messages to the number of simultaneous readers of these messages. 从基本层迁移到标准层时,此值保持不变。This value remains unchanged when you migrate from basic tier to standard tier.

后续步骤Next steps

详细了解如何选择正确的 IoT 中心层Get more details about How to choose the right IoT Hub tier.