This topic describes how to renew, upgrade, and maintain Message Queue for MQTTinstances.

Note You can renew, upgrade, and downgrade only subscription instances, but not pay-as-you-go instances.

Renew an instance

Message Queue for MQTT A notification will be sent to the mobile phone number corresponding to your account seven days before an instance expires. When you receive such a notification, renew this instance promptly. If this instance is not renewed upon expiration, it is retained for seven days and then automatically released.

  1. Log on to the Message Queue for MQTTconsole. In the top navigation bar, select a region from the Region drop-down list, such as China (Hangzhou).
  2. In the left-side navigation pane, choose Instances.

  3. On the Instances page, find the instance to be renewed, and then click Renew.

  4. On the Renew page, select the renewal cycle as needed, and complete the payment.

Enable auto-renew

We recommend that you enable auto-renew for subscription instances in the Alibaba Cloud console to prevent instance expiration from impacting services.

  1. Log on to the Message Queue for MQTTconsole console. In the top navigation bar, choose Billing Management > Renew.

  2. In the left-side navigation pane of the Renew page, choose Message Queue for MQTT.

  3. On the Message Queue for MQTT page, click the Manually Renew tab. In the Instances to Manually Renew section, find the instance for which you want to enable auto-renew. Click Enable Auto-Renew in the Actions column.
  4. In the Enable Auto-Renew dialog box, set Auto-Renew Cycle as needed, and click Enable Auto-Renew.

Upgrade an instance

In the service period, you can decide whether to upgrade or downgrade the existing instance specifications based on your business needs.
Notice
  • The upgrade of a Basic Edition instance takes effect in real time. The upgrade of an Enterprise Platinum Edition instance must be performed by a technical support engineer of Message Queue for MQTT. The upgrade may take some time but does not affect service operation.

  • Instance downgrade takes effect in real time, and refunds are unavailable for instance downgrade. Therefore, we recommend that you downgrade an instance when a billing cycle of this instance approaches the end.

  • Cross-edition upgrade and downgrade are not supported. That is, the Basic Edition cannot be changed to the Enterprise Platinum Edition, and vice versa.

  1. Log on to the Message Queue for MQTTconsole. In the top navigation bar, select a region from the Region drop-down list.
  2. In the left-side navigation pane, choose Instances.

  3. On the Instances page, find the instance for which you want to change specifications, and then click Upgrade.

  4. On the Upgrade page, select the instance specifications as needed, and complete the payment.

Maintain an instance

You can view instance statistics during the instance runtime, which include the messaging TPS, subscriptions, and connected clients. You can also set alerts for the instance to monitor instance usage in real time.

  • View instance statistics
    1. Log on to the Message Queue for MQTTconsole. In the top navigation bar, select a region from the Region drop-down list.
    2. In the left-side navigation pane, choose Instances.

    3. On the Instances page, find the instance you want to view. Click the Statistics tab.

    4. On the Statistics tab, set a time range. Then click Search.

      Note The maximum time span is two days.
  • Set instance alerts

    Message Queue for MQTT Message Queue for MQTT (MQTT) provides a series of metrics on a per-instance basis, such as messaging TPS, subscriptions, and connected clients. MQTT can also send alert SMS messages to the mobile phone numbers of relevant contacts when these metrics exceed the alert thresholds so that these contacts can promptly upgrade instance specifications.

    The alert thresholds are set to 70% of instance specifications by default. You can define the alert thresholds.

    1. Log on to the Message Queue for MQTTconsole. In the top navigation bar, select a region from the Region drop-down list.

    2. In the left-side navigation pane, choose Instances.
    3. On the Instances page, find the instance for which you want to set an alert, and then click Monitor.

    4. In the Monitoring Alarms dialog box, enter an alert threshold. Select Enable from the Alarms drop-down list, and click OK.

Switch billing methods

To change the billing method of an instance, follow these steps:

  1. Create a new instance.
  2. Connect the consumer program to both the old and new instances to ensure that messages from both instances can be processed simultaneously.
  3. Update the producer configuration to the configuration of the new instance.
  4. Disconnect the old instance. On the Instances page in the console, click Delete Instance to delete the old instance.

If you have any questions about modifying your client program, open a ticket.