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

Buying a RabbitMQ Instance

RabbitMQ is an open-source service using the advanced message queuing protocol (AMQP). RabbitMQ stores and forwards messages in a distributed system.

RabbitMQ instances are tenant-exclusive, and physically isolated in deployment. You can customize the computing capabilities and storage space of a RabbitMQ instance as required.

Preparing Instance Dependencies

Dependency resources listed in Table 1 have been prepared.

Table 1 RabbitMQ instance dependencies

Resource Name

Requirement

Reference

VPC and subnet

You need to configure a VPC and subnet for the RabbitMQ instance as required. You can use the current account's existing VPC and subnet or shared ones, or create new ones.

VPC owners can share the subnets in a VPC with one or multiple accounts through Resource Access Manager (RAM). Through VPC sharing, you can easily configure, operate, and manage multiple accounts' resources at low costs. For more information about VPC and subnet sharing, see VPC Sharing.

Note: VPCs must be created in the same region as the RabbitMQ instance.

For details on how to create a VPC and subnet, see Creating a VPC. If you need to create and use a new subnet in an existing VPC, see Creating a Subnet for the VPC.

Security group

Different RabbitMQ instances can use the same or different security groups.

Before accessing a RabbitMQ instance, configure security groups based on the access mode. For details, see Table 2 or Table 3.

For details on how to create a security group, see Creating a Security Group. For details on how to add rules to a security group, see Adding a Security Group Rule.

EIP

To access a RabbitMQ instance on a client over a public network, create EIPs in advance.

Note the following when creating EIPs:

  • The EIPs must be created in the same region as the RabbitMQ instance.
  • The RabbitMQ console cannot identify IPv6 EIPs.

For details about how to create an EIP, see Assigning an EIP.

Buying a RabbitMQ Instance (3.8.35)

  1. Go to the Buy Instance page.
  2. Specify Billing Mode.

    • Yearly/Monthly: To create a RabbitMQ instance, determine how long you would like to use it and it will be billed at the current price immediately.
    • Pay-per-use: To create a RabbitMQ instance, there is no need to specify a subscription because the instance will be billed based on usage duration.

  3. Select a region.

    DMS for RabbitMQ instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.

  4. Select a Project.

    Projects isolate compute, storage, and network resources across geographical regions. For each region, a preset project is available.

  5. Select an AZ.

    An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.

    Select one, three, or more AZs as required. The AZs cannot be changed once the instance is created.

  6. Enter an Instance Name.

    You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).

  7. Select an Enterprise Project.

    This parameter is for enterprise users. An enterprise project manages cloud resources. The enterprise project management service unifies cloud resources in projects, and resources and members in a project. The default project is default.

  8. Configure the following instance parameters:

    1. Version: Select 3.8.35.
    2. Architecture: Select Single-node or Cluster.
      • Single-node: There is only one RabbitMQ broker.
      • Cluster: There are multiple RabbitMQ brokers, achieving highly reliable message storage.
    3. Broker Flavor: Select a flavor as required. Learn more about Specifications.

      To ensure service stability and reliability, DMS for RabbitMQ sets the default memory high watermark to 40%. Publishers will be blocked if the memory usage exceeds 40%. To avoid reaching the high watermark, retrieve messages stacked in the queue in time.

    4. Brokers: Select the required number of brokers.
    5. Storage space per broker: Select the disk type and size.

      For details about how to select a disk type, see Disk Types and Performance.

      • For a single-node instance, the value range is 100–30,000 GB.
      • For a cluster instance, the value range is Number of brokers × 100 GB to Number of brokers × 30,000 GB.
    6. VPC: Select the created VPC and subnet or shared ones.

      A VPC provides an isolated virtual network for your RabbitMQ instances. You can configure and manage the network as required.

      The VPC and subnet cannot be changed once the instance is created.

    7. Security Group: Select a security group.

      A security group is a set of rules for accessing a RabbitMQ instance. Click Manage Security Group. On the console that is displayed, view or create security groups.

    8. Configure SSL.

      This parameter indicates whether SSL authentication is enabled when a client is accessing an instance. If SSL is enabled, data will be encrypted before transmission for enhanced security.

      Once the instance is created, SSL cannot be enabled or disabled.

    Figure 1 Configuring the instance parameters

  9. Enter the username and password used for connecting to the RabbitMQ instance.

    A username should contain 4 to 64 characters, start with a letter, and contain only letters, digits, hyphens (-), and underscores (_).

    A password must meet the following requirements:

    • Contains 8 to 32 characters.
    • Contains at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters `~! @#$ %^&*()-_=+\|[{}];:'",<.>? and spaces, and cannot start with a hyphen (-).
    • Cannot be the username spelled forwards or backwards.

  10. Specify the required duration.

    This parameter is displayed only if the billing mode is yearly/monthly.

  11. Click Advanced Settings to configure more parameters.

    1. Configure Public Access.

      Public access can be enabled or disabled.

      A RabbitMQ instance with public access enabled can be accessed by using an EIP. After you enable public access, Elastic IP Address is displayed. Select an EIP or click Create Elastic IP to view or buy EIPs.

      • In comparison with intra-VPC access, enabling public access increases access latency and might lead to packet loss and jitter. Therefore, you are advised to enable public access only during the service development and testing phases.
      • If you manually unbind or delete an EIP on the VPC console, the public access function of the corresponding RabbitMQ instance is automatically disabled.
    2. Specify Tags.

      Tags are used to identify cloud resources. When you have multiple cloud resources of the same type, you can use tags to classify them based on usage, owner, or environment.

      If your organization has configured tag policies for DMS for RabbitMQ, add tags to RabbitMQ instances based on the tag policies. If a tag does not comply with the tag policies, RabbitMQ instance creation may fail. Contact your organization administrator to learn more about tag policies.

      • If you have predefined tags, select a predefined pair of tag key and value. You can click View predefined tags to go to the Tag Management Service (TMS) console and view or create tags.
      • You can also create new tags by entering Tag key and Tag value.

      Up to 20 tags can be added to each RabbitMQ instance. For details about the requirements on tags, see Managing RabbitMQ Instance Tags.

    3. Enter a description of the instance.

  12. Click Buy Now.
  13. Confirm the instance information, and read and agree to the Huawei Cloud Customer Agreement. If you have selected the yearly/monthly billing mode, click Pay Now. and make the payment as prompted. If you have selected the pay-per-use mode, click Submit.
  14. Return to the instance list and check whether the 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 by referring to Deleting a RabbitMQ Instance and try purchasing another one. If the instance purchase fails again, contact customer service.

Purchasing a RabbitMQ Instance (AMQP-0-9-1)

  1. Go to the Buy Instance page.
  2. Specify Billing Mode.

    • Yearly/Monthly: To create a RabbitMQ instance, determine how long you would like to use it and it will be billed at the current price immediately.
    • Pay-per-use: To create a RabbitMQ instance, there is no need to specify a subscription because the instance will be billed based on usage duration.

  3. Select a region.

    DMS for RabbitMQ instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.

  4. Select a project.

    Projects isolate compute, storage, and network resources across geographical regions. For each region, a preset project is available.

  5. Select an AZ.

    An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.

    The AZ setting is fixed once the instance is created.

  6. Enter an Instance Name.

    You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).

  7. Select an Enterprise Project.

    This parameter is for enterprise users. An enterprise project manages cloud resources. The enterprise project management service unifies cloud resources in projects, and resources and members in a project. The default project is default.

  8. Configure the following instance parameters:

    1. Version: Select AMQP-0-9-1.
    2. Instance Type: Select Professional.
    3. Architecture: Select Single-node or Cluster.
      • Single-node: There is only one RabbitMQ broker.
      • Cluster: There are multiple RabbitMQ brokers, achieving highly reliable message storage.
    4. Flavor: Select a flavor as required.
    5. Storage Space: Indicates the disk type and total storage space of all the brokers.

      For details about how to select a disk type, see Disk Types and Performance.

      • For a single-node instance, the value range is 100–30,000 GB.
      • For a cluster instance, the value range is 200–60,000 GB.
    6. VPC: Select the created VPC and subnet or shared ones.

      A VPC provides an isolated virtual network for your RabbitMQ instances. You can configure and manage the network as required.

      The VPC and subnet cannot be changed once the instance is created.

    7. Security Group: Select a security group.

      A security group is a set of rules for accessing a RabbitMQ instance. Click Manage Security Group. On the console that is displayed, view or create security groups.

    8. ACL: RabbitMQ instances support ACL-based permission isolation among producers and consumers. You can create multiple users, and grant virtual host (resource) permissions to them. When ACL is enabled, message production and consumption require authentication.

  9. Specify the required duration.

    This parameter is displayed only if the billing mode is yearly/monthly.

  10. Click Advanced Settings to configure more parameters.

    1. Configure Public Access.

      RabbitMQ AMQP-0-9-1 instances do not support public access.

    2. Specify Tags.

      Tags are used to identify cloud resources. When you have multiple cloud resources of the same type, you can use tags to classify them based on usage, owner, or environment.

      If your organization has configured tag policies for DMS for RabbitMQ, add tags to RabbitMQ instances based on the tag policies. If a tag does not comply with the tag policies, RabbitMQ instance creation may fail. Contact your organization administrator to learn more about tag policies.

      • If you have predefined tags, select a predefined pair of tag key and value. You can click View predefined tags to go to the Tag Management Service (TMS) console and view or create tags.
      • You can also create new tags by entering Tag key and Tag value.

      Up to 20 tags can be added to each RabbitMQ instance. For details about the requirements on tags, see Managing RabbitMQ Instance Tags.

    3. Enter a description of the instance.

  11. Click Buy.
  12. Confirm the instance information, and read and agree to the Huawei Cloud Customer Agreement. If you have selected the yearly/monthly billing mode, click Pay Now. and make the payment as prompted. If you have selected the pay-per-use mode, click Submit.
  13. Return to the instance list and check whether the 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 Failed state, delete it by referring to Deleting a RabbitMQ Instance and try purchasing another one. If the purchase fails a second time, contact customer service.