tencent cloud

Create Vhost
마지막 업데이트 시간:2025-08-11 10:37:20
Create Vhost
마지막 업데이트 시간: 2025-08-11 10:37:20
A Virtual Host (Vhost) is a resource management concept in TDMQ for RabbitMQ, used for logical isolation. Exchanges and Queues between different Vhosts are isolated and do not interfere with one another. A cluster can create multiple Vhosts, and a Vhost can have several Exchanges and Queues inside. Producers and Consumers need to specify a Vhost when connecting to the RabbitMQ cluster.
Users can isolate diverse business scenarios through Vhosts and apply specialized configuration for different business scenarios, such as message retention period.

Constraints and Limitations

Exchange and Queue names must be unique within the same Vhost.
A managed open-source cluster supports up to 20 Vhosts, while a Serverless cluster supports up to 250 Vhosts.
After cluster creation is completed, the system will automatically create a default Vhost named "/", which cannot be deleted.

Prerequisites

The RabbitMQ cluster has been created. For more information, see Create Cluster.

Operation Steps

1. Log in to the TDMQ for RabbitMQ console.
2. Select Cluster Management > Vhost in the left sidebar. After selecting the region and cluster, click Create to enter the create vhost page.
3. In the create Vhost dialog box, set the relevant properties of the Vhost.
Parameter
Description
Vhost Name
Set the Vhost name (cannot be modified after creation), comply with the naming rule, 1-64 characters, can only contain letters, digits, ".", "-", "/", and "_".
mirrored queue
Mirrored queue is only supported when the cluster type is open-source managed. Serverless version is not currently supported.
It is recommended to enable mirrored queue to ensure availability. This mirrored queue can replicate messages in the queue across multiple nodes in the RabbitMQ cluster, ensuring messages are not lost when a node fails (single-node cluster cannot enable it). Once enabled, a default policy will be generated on the Basic Information Policies page of the corresponding Vhost. This policy only takes effect for the corresponding Vhost. For default policy parameters, refer to Configure Mirror Policy.
Overview
Remarks for the Vhost.
4. Click Submit to complete the Vhost creation in the located cluster.

Following Steps

Next, you can Create an Exchange and Create a Queue in this Vhost to produce and consume messages.

문제 해결에 도움이 되었나요?
더 자세한 내용은 문의하기 또는 티켓 제출 을 통해 문의할 수 있습니다.
아니오

피드백