Prerequisites
Before carrying out a partition reassignment test, the following conditions must be met: Complete the installation and deployment of the AutoMQ cluster. You can refer to the following methods to install and deploy AutoMQ: Additionally, the host running the test program must meet the following conditions:- Linux/Mac/Windows Subsystem for Linux
- Docker
Experience Partition Reassignment
If the previous AutoMQ cluster was deployed following the Deploy Multi-Nodes Test Cluster on Docker▸ guide, the obtained cluster Bootstrap address will resemble “server1:9092,server2:9092,server3:9092,” and the AutoMQ cluster is on the “automq_net” Docker network.Please replace the bootstrap-server address below with the actual cluster’s address based on the deployment configuration.
Create Topic
Send Messages
Execute the following command to send a specified amount of data.View Partition Distribution
Reassign Partitions Between Brokers
In this step, it’s assumed that partition 0 of the test topic “reassign-topic” is currently on node 1, and the goal is to reassign this partition to node 2. Depending on the actual partition distribution during testing, you might opt to reassign to different nodes.- Create the partition reassignment plan.
- Execute the partition reassignment plan.