tencent cloud

DokumentasiTDMQ for MQTT

Step 1: Creating a Cluster and Configuring the Public Network

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-10-22 16:22:42
Diterjemahkan oleh AI

Scenarios

Before using the SDK to send and receive messages, you need to create clusters and configure the network in the TDMQ for MQTT console, and configure information about related resources when running the client.

Prerequisites

You have completed the preparations.

Creating a Cluster

1. Log in to the TDMQ for MQTT console.
2. In the left sidebar, choose Resource Management > Cluster, select an appropriate region, and then click Create Cluster to go to the cluster purchase page.
Configuration
Description
Billing Mode
Supports Yearly/monthly subscription and Pay as you go modes.
Yearly/monthly subscription: requires payment before resource usage. This billing mode is suitable for scenarios with steady and long-term usage requirements.
Pay-as-you-go: Pay for resources after usage. This billing mode is suitable for testing or scenarios with unpredictable traffic peaks.
Region
Select a region near your client to minimize network latency and improve access speed. Cloud products in different regions cannot communicate over the private network, and the region cannot be changed after purchase, so proceed with caution.
Cluster Specification
Select Pro Edition. The Basic Edition is sold out. Differences between versions can be checked in the Product Series.
TPS Specification
Select a TPS specification based on your business traffic requirements. You can quickly adjust the specification on the console later. The TPS specification includes the total of produced and consumed messages, which are converted per message based on settings. For details, see Purchase Description.
Online Clients
In the Pro Edition, the number of free connections varies by TPS specification. Additional connections can be purchased separately as needed.
VPC
Authorize binding the access point domain name of the newly purchased cluster to the Virtual Private Cloud (VPC).
Public Network Access
Enabling public network bandwidth will incur additional fees. You can disable it on the cluster basic information page after activation. For pricing details, refer to Public Network Billing Description.
Cluster Name
Enter a cluster name that complies with the naming rules: It must be 3 to 64 characters in length and can only contain digits, letters, hyphens (-), and underscores (_).
Tag
Tags are used to categorize and manage resources from different dimensions.
3. After confirming that the cluster information is correct, click Buy Now. After completing the payment on the order payment page, wait for 3 - 5 minutes for the new cluster to appear in the cluster list on the Cluster Management page.

Enabling Public Network Access and Obtaining Access Point Addresses

1. Click the ID of the created cluster to enter the Basic Information page.
2. In the Access Information section, click the edit button next to Public Network Access, and then enable public network access in the pop-up window.
3. In the pop-up window for adjusting network bandwidth, set the public bandwidth size and configure a secure access policy for the public network to allow access from designated IP addresses. If no policy is set, all IP access is denied by default.

4. After clicking Submit and completing the payment, return to the console. The public network status will show "Enabling". Wait until the public network is enabled.
5. After the public network is enabled, you can see the public network bandwidth and IP address displayed in the Public Network Access Address field in the Client Access section.

6. You can verify network connectivity using the following command:
curl -v http://mqtt-xxxx-sh-public.mqtt.tencenttdmq.com/status/check
Here, mqtt-xxxx-sh-public.mqtt.tencenttdmq.com is the access point to be verified.
If the network is connected, the output is similar to the following:



Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan