tencent cloud

Feedback

Resource Creation and Preparation

Last updated: 2024-01-03 11:39:16

    Overview

    This document describes how to create an exclusive cluster in the TDMQ console and create resources such as vhosts, exchanges, and queues in the open-source RabbitMQ console. This helps you prepare the resources required to run a client.

    Directions

    Step 1. Create a cluster

    1. Log in to the TDMQ console.
    2. Select RabbitMQ > Cluster on the left sidebar and click Create Cluster to enter the purchase page.
    3. On the purchase page, select the target instance specification and click Buy Now.
    4. Click the cluster ID to enter the Basic Info page and get the server connection information in the Client Access section.
    

    Step 2. Create a vhost

    1. Click the ID of the cluster just created to enter the Basic Info page.
    2. Select the Vhost tab at the top and click Create to enter the Create Vhost page.
    3. In the Create Vhost window, configure the vhost attributes:
    Vhost Name: Enter the vhost name, which cannot be modified after creation and can contain 1–64 letters, digits, "-", and "_".
    Remarks: Enter the vhost remarks.
    4. Click Submit.
    

    Step 3. Create and authorize a user

    Every cluster has a user named "admin" by default. You can configure permissions for this default user or create new users as needed.
    1. Select the User and Permission tab at the top of the page and click Create User on the User Management tab.
    2. Enter the username and password and click Submit.
    
    3. On the User and Permission tab, select the Permission List tab and click Configure Permission.
    4. On the Configure Permission page, select the target vhost and user and set permission rules.
    Permission rules can match resources through regex. For example, if you select Configuration and enter "test.-*" in the input box, then the user will be granted the permission to configure all resources with a name starting with "test-" under the current vhost.
    5. Click Submit.
    

    Step 4. Create an exchange

    1. On the exchange list page, select the Exchange tab at the top to enter the Exchange list page.
    2. Select the vhost you just created, click Create, enter the exchange name, select the route type, and configure other advanced parameters as needed.
    3. 3. Click Submit.
    

    Step 5. Create a queue

    1. Select the Queue tab at the top to enter the Queue list page.
    2. Select the vhost you just created, click Create, enter the queue name, select the queue type and node, and configure common parameters and other advanced parameters as needed.
    3. Click Submit.
    

    Step 6. Bind a routing

    1. On the Queue list page, select the Routing tab at the top to enter the Routing list page.
    2. Select the vhost you just created and click Create.
    Select the exchange you just created as the source exchange, enter a key to be bound, and select Queue as the binding type and the queue you just created as the binding target.
    3. Click Submit to complete the binding.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support