Updated on 2024-05-10 GMT+08:00

Step 2: Create a RocketMQ Instance

This section takes the example of creating a RocketMQ v4.8.0 instance with SSL enabled in the AP–Singapore region 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. Go to the Buy Instance page.
  2. Set Billing Mode to Pay-per-use.
  3. Select a region closest to your application to reduce latency and accelerate access.
  4. Select a project from the drop-down list.
  5. Select one AZ or at least three AZs.
  6. Specify the Instance Name and the Enterprise Project.
  7. Set the instance information. For details, see Table 1.

    Table 1 Setting instance information

    Parameter

    Description

    Specifications

    Select Default.

    Version

    Select 4.8.0.

    Fixed once the instance is created. Use the same version as your client.

    Architecture

    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

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

    Enable it.

    ACL

    Enable it.

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

  10. Click Buy.
  11. Confirm the instance information and submit the request.
  12. 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 the instance is in the Creation failed state, delete it. Then create a new one. If the instance creation fails again, contact customer service.