Updated on 2024-04-07 GMT+08:00

Step 2: Create a RocketMQ Instance

This section takes the example of creating a RocketMQ v4.8.0 instance to describe how to create a RocketMQ instance on the console.

Prerequisites

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

  1. Log in to the DMS for RocketMQ console and click Create Instance in the upper right.
  2. Select a region closest to your application to reduce latency and accelerate access.
  3. Select a project from the drop-down list.
  4. Select one AZ or at least three AZs.
  5. Specify the Instance Name and the Enterprise Project.
  6. 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.

    Instance Type

    Select Cluster.

    CPU Architecture

    Select x86.

    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

  7. 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.

  8. Click Advanced Settings. For more information, see Table 3.

    Table 3 Advanced settings

    Parameter

    Description

    Public Access

    Do not enable it.

    SSL

    Enable it.

    This setting is fixed once the instance is created.

    Tags

    Skip it.

    Description

    Skip it.

  9. Click Create.
  10. Confirm the instance information and submit the request.
  11. 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.