This document outlines the process for using Kafka CLI tools to verify AutoMQ’s sub-second partition reassignment capability. The Kafka CLI tool is executed via a Docker image provided by AutoMQ. First, create a new Kafka topic with a single partition and initiate a producer to write a certain amount of data into it. Next, attempt to reassign the partition among different AutoMQ brokers using the reassign command. Observe the time it takes to complete the partition reassignment.Documentation Index
Fetch the complete documentation index at: https://docs.automq.com/llms.txt
Use this file to discover all available pages before exploring further.
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.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.