Step 2: Create a RocketMQ Instance
This section takes the example of creating a RocketMQ v4.8.0 instance with SSL enabled to describe how to create a RocketMQ instance on the console.
Prerequisite
Before creating a RocketMQ instance, ensure that a VPC and a security group are available. If no VPC or security group is available, create them by referring to Step 1: Prepare the Environment.
Procedure
- Log in to the DMS for RocketMQ console and click Buy Instance in the upper right.
- Set Billing Mode to Pay-per-use.
- Select a region closest to your application to reduce latency and accelerate access.
- Select a project from the drop-down list.
- Select one AZ or at least three AZs.
- Specify the Instance Name and the Enterprise Project.
- Set the instance information. For details, see Table 1.
Table 1 Setting instance information Parameter
Description
Version
Select 4.8.0.
Fixed once the instance is created. Use the same version as your client.
Architecture
Select Cluster.
Broker Flavor
Select rocketmq.4u8g.cluster.
Brokers
Enter 1.
Storage Space per Broker
Select Ultra-high I/O and enter 300 GB.
Total storage space of an instance = Storage space per broker × Number of brokers
- Configure the instance network. For details, see Table 2.
Table 2 Configuring instance network Parameter
Description
VPC
Select the created VPC and subnet.
After the RocketMQ instance is created, its VPC and subnet cannot be changed.
Security Group
Select the created security group.
SSL
Select SSL.
ACL
Enable it.
- Click Advanced Settings. For more information, see Table 3.
Table 3 Advanced settings Parameter
Description
Public Access
Do not enable it.
Tags
Skip it.
Description
Skip it.
- Click Buy.
- Confirm the instance information and submit the request.
- Return to the instance list and check whether the RocketMQ instance has been created.
It takes 3 to 15 minutes to create an instance. During this period, the instance status is Creating.
- If the instance is created successfully, its status changes to Running.
- If an instance fails to be created, view it in the Instance Creation Failures area and delete it. Then create a new one. If the instance creation fails again, contact customer service.
- Prerequisite
- Procedure