tencent cloud

Feedback

Vhost Management

Last updated: 2024-01-03 11:42:22

    Overview

    Virtual host (vhost) is a resource management concept in TDMQ for RabbitMQ. It is used for logical isolation. Exchanges and queues of different vhosts are isolated from each other.
    Generally, different business scenarios can be isolated by vhost and configured with dedicated settings, such as message retention period.
    This document describes how to create multiple vhosts in TDMQ for RabbitMQ so as to use the same TDMQ for RabbitMQ cluster in different scenarios.
    Note
    Exchange and queue names must be unique in the same vhost.

    Prerequisites

    You have created a cluster as instructed in Cluster Management.

    Directions

    Creating vhost

    1. Log in to the TDMQ console, select the region, and click the ID of the target cluster to enter the Basic Info page of the cluster.
    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 "_".
    Trace Plugin: The rabbitmq_tracing plugin can track messages in RabbitMQ. After it is enabled, you can use the message query feature in the console.
    Remarks: Enter the vhost remarks.
    4. Click Submit.
    Next steps: You can create an exchange and queue in the vhost to produce and consume messages.

    Viewing a vhost

    On the vhost list page, click the ID of the target vhost to enter the Basic Info page, which is divided into two modules:
    Overview
    Queue Count: The number of queues under the current vhost.
    Exchange Count: The number of exchanges under the current vhost.
    Channel Count: The number of channels under the current vhost.
    User Count: The number of users under the current vhost.
    Connection List
    The information of connections under the current vhost and the number of channels of each connection.

    Modifying a vhost

    The trace plugin can be toggled on/off on the vhost list page.
    You can modify the description of a vhost in the following steps:
    1. On the Vhost list page, click Edit in the Operation column of the target vhost to enter the editing page.
    2. Modify the description and click Submit.

    Deleting a vhost

    You can delete a created vhost in the following steps:
    1. On the Vhost list page, click Delete in the Operation column.
    2. In the deletion confirmation pop-up window, click OK.
    Note:
    After a vhost is deleted, all the configurations under it will be cleared and cannot be recovered.
    
    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