All Products
Search
Document Center

:Overview

Last Updated:Sep 08, 2023

This topic describes the working mechanism and process of migrating an open source RabbitMQ cluster to an ApsaraMQ for RabbitMQ instance.

Working mechanism

To migrate an open source RabbitMQ cluster to an ApsaraMQ for RabbitMQ instance, you need only to consume all messages in the original RabbitMQ cluster. Messages are produced and consumed within open source RabbitMQ clusters. Therefore, you can migrate the clusters one by one without affecting upper-layer services.

Process (dual-read mode)

  1. Create an ApsaraMQ for RabbitMQ instance.

    For more information, see the "Create an instance" section of the Manage instances topic.pg_migrate_metadata

  2. Migrate the metadata of the open source RabbitMQ cluster to the ApsaraMQ for RabbitMQ instance.

  3. Enable a new consumer for the ApsaraMQ for RabbitMQ instance to consume messages in the instance.

    create_producer
  4. Enable a new producer for the ApsaraMQ for RabbitMQ instance, shut down the original producer of the open source RabbitMQ cluster, and then enable the original consumer to continue consuming messages from the cluster.

    pg_create_producer
  5. After all the messages in the open source RabbitMQ cluster are consumed, shut down the original consumer and the open source RabbitMQ cluster.

    pg_6