This topic describes the benefits, principles, and process of migrating an open source RabbitMQ cluster to a Message Queue for RabbitMQ instance.

Benefits

For information about the benefits of migrating a RabbitMQ cluster to a Message Queue for RabbitMQ instance, see Benefits.

Principles

To migrate a RabbitMQ cluster, you need only to consume all messages in the cluster. Producers and consumers send and receive messages based on RabbitMQ clusters. The clusters can be migrated one by one, and the migration is not perceived by upper-layer services.

Process (dual-read mode)

You can perform the following steps to migrate a RabbitMQ cluster to a Message Queue for RabbitMQ instance in dual-read mode:

  1. Create a Message Queue for RabbitMQ instance.
    For more information, see Create an instance. pg_migrate_metadata
  2. Migrate the metadata of the RabbitMQ cluster to the Message Queue for RabbitMQ instance.
    For more information, see Migrate metadata to the cloud. pg_create_consumer
  3. Enable a new consumer for the Message Queue for RabbitMQ instance to consume messages from the instance.
    create_producer
  4. Enable a new producer for the Message Queue for RabbitMQ instance, deprecate the original producer of the RabbitMQ cluster, and enable the original consumer to continue consuming messages from the cluster.
    pg_create_producer
  5. After all the messages in the RabbitMQ cluster are consumed, deprecate the original consumer and the RabbitMQ cluster.
    pg_6