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