- Create a topic with 16 partitions and distribute a balanced load.
- As you start and stop brokers, check to see if partitions automatically reassign themselves across different brokers.
Prerequisites
Before conducting automated partition data rebalance tests, the following conditions must be met: Complete the installation and deployment of the AutoMQ cluster. You can refer to the following methods for installing and deploying AutoMQ:If deploying the cluster through Deploy Multi-Nodes Cluster on Linux▸ or Deploy Multi-Nodes Cluster on Kubernetes▸, you need to ensure that when starting the Controller, autobalancer.controller.enable is set to true to enable automatic data rebalancing.
- Linux/Mac/Windows Subsystem for Linux
- Docker
Experience Partition Reassignment Triggered by Cluster Node Changes.
If the previous AutoMQ cluster was deployed by following the guide Deploy Multi-Nodes Test Cluster on Docker▸, the cluster bootstrap address you would have acquired might look like “server1:9092,server2:9092,server3:9092”, and the AutoMQ cluster would be in the “automq_net” Docker network.Please replace the bootstrap-server address below with the actual address of the cluster based on your deployment configuration.