-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Task
Create a demo to showcase automatic rebalancing when scaling down the cluster.
Background
When a broker is decommissioned or fails (scale-down), its partitions must be safely and automatically migrated to the remaining active brokers to ensure data availability and distribute the load. This demo will illustrate this process.
Proposed Solution / Demo Plan
-
Environment Setup:
- Create a
docker-compose.ymlthat starts a 3-node AutoMQ cluster.
- Create a
-
Initial State:
- Start the 3-node cluster and produce a balanced load to a topic with several partitions.
- Instruct the user to verify that partitions are distributed across all three brokers.
-
Scale-Down Event:
- Instruct the user to simulate a node failure or decommissioning by stopping one of the broker containers:
docker compose stop automq-broker-3.
- Instruct the user to simulate a node failure or decommissioning by stopping one of the broker containers:
-
Observation and Verification:
- Allow the auto-balancer and cluster controller a few minutes to react.
- Instruct the user to re-check the partition distribution.
- They should observe that the partitions formerly on the stopped broker have been successfully migrated to the two remaining active brokers.
Acceptance Criteria
- A runnable
docker-compose.ymlis provided inauto-balancing-demos/scale-down/. - The
README.mdprovides a clear, step-by-step guide. - The guide explains how to start a 3-node cluster, stop one of the nodes, and verify that its partitions are automatically migrated to the remaining nodes.
Metadata
Metadata
Assignees
Labels
No labels