RabbitMQ metadata migration refers to migrating the metadata of the RabbitMQ instance from offline to online.
Background
RabbitMQ cluster metadata refers to the information of the RabbitMQ cluster, including User, Vhost, Queue, Exchange, Binding Key, Permission, and Parameter. RabbitMQ cluster metadata is stored in the internal database of the RabbitMQ cluster and automatically replicated between various nodes in the cluster. Each node in the cluster has its own copy of metadata. When the metadata of a node changes, the metadata of all nodes will be updated synchronously. Therefore, the metadata of each node in the cluster is the same when exported. RabbitMQ cluster metadata can be exported as a JSON file and then imported into another RabbitMQ cluster for RabbitMQ cluster metadata backup.
Migrating metadata to cloud refers to migrating the metadata of the open source RabbitMQ cluster to the eSurfing Cloud DMS RabbitMQ instance. DMS RabbitMQ is a fully managed message queue service provided by eSurfing Cloud, which is compatible with open-source RabbitMQ. You can export the RabbitMQ cluster metadata and then import it into the DMS RabbitMQ instance. The DMS RabbitMQ will create the corresponding Vhost, Queue, Exchange, and Binding in the target DMS RabbitMQ instance based on the successfully imported metadata to implement the migration of RabbitMQ cluster metadata to cloud. You can import all Vhost information into the DMS RabbitMQ instance, or import some Vhost information into the Vhost in the DMS RabbitMQ instance as needed.
Migrating Metadata
(1) View on the RabbitMQ WebUI page. In the Overview view, click the Download Broker Definitions button to download cluster metadata. Get the JSON file of RabbitMQ metadata.
(2) Go online with the RabbitMQ instance to import metadata.
Click Select File, select the JSON file exported in the previous step, then click Import Configuration.
Note: The offline Rabbitmq cluster cannot contain the username rabbitmq, or it will be overwritten. The username rabbitmq is the admin account used internally by eSurfing Cloud RabbitMQ.