View a markdown version of this page

Intelligent rebalancing for clusters - Amazon Managed Streaming for Apache Kafka
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Intelligent rebalancing for clusters

Amazon MSK provides intelligent rebalancing for all new MSK Provisioned clusters with Express brokers. This feature automatically manages partition distribution and cluster scaling operations, eliminating the need for third-party tools. Intelligent rebalancing automatically rebalances partitions when you scale clusters out or in. It also continuously monitors your cluster's health for resource imbalance or overload and redistributes workload.

With intelligent rebalancing, you get fast scaling operations that complete within 30 minutes without impacting cluster availability during scaling. It's turned on by default for all new Amazon MSK Provisioned clusters with Express brokers and works within the recommended partition limits per broker. For the recommended limits per instance type, see Express broker partition quota.

Effective 20th Nov 2025, intelligent rebalancing is available in all Amazon Regions where Amazon MSK Express brokers are supported.

Effective June 18, 2026, intelligent rebalancing is available for all MSK Provisioned clusters with Express brokers. This includes Express clusters created prior to the launch of the intelligent rebalancing feature in November 2025. For clusters created before November 20, 2025, intelligent rebalancing is available with Rebalancing Status set to Paused. To enable this feature for your existing clusters, set Rebalancing Status to Active using the Amazon MSK console, Amazon CLI, or SDK. For instructions, see Steady state rebalancing.

How intelligent rebalancing works

Intelligent rebalancing is turned on by default for all new MSK Provisioned clusters with Express brokers. It includes support for the following situations:

  • Scaling out and in: Once brokers are added or removed, intelligent rebalancing automatically redistributes partitions across the new cluster setup based on internal Amazon best practices.

  • Steady state rebalancing: At steady state, this feature monitors your cluster's health continuously and automatically rebalances partitions.

Note

If intelligent rebalancing is turned on, you won't be able to use third-party tools, such as Cruise Control, for partition rebalancing. You must first pause intelligent rebalancing to use partition reassignment APIs, such as Kafka's alterPartitionReassignments API or the APIs provided by these third-party tools. For information about pausing, see Steady state rebalancing.

You can use this feature in the Amazon MSK console. You can also use this feature using the Amazon CLI, Amazon MSK APIs or Amazon SDK, and Amazon CloudFormation. For more information, see Scaling Amazon MSK clusters and Steady state rebalancing.

Monitoring intelligent rebalancing metrics

You can monitor the status of ongoing and historical intelligent rebalancing operations using the following Amazon CloudWatch metrics:

  • RebalanceInProgress: This metric is published every minute with a value of 1 when rebalancing is ongoing and 0 otherwise.

  • UnderProvisioned: This metric is published every minute with a value of 1 when the cluster is under provisioned and 0 otherwise. When a cluster is under provisioned, partition rebalancing can't be performed. You either need to add more brokers or scale up your cluster's instance type.

For information about monitoring an MSK Provisioned cluster, see Monitor an Amazon MSK Provisioned cluster and View Amazon MSK metrics using CloudWatch.

Considerations to use intelligent rebalancing

  • Effective June 18, 2026, Intelligent Rebalancing is available for all MSK Provisioned clusters with Express brokers. This includes Express clusters created prior to the launch of intelligent rebalancing feature in November 2025. For clusters created before November 20, 2025, Intelligent Rebalancing is available with Rebalancing Status set to Paused. To enable this feature for your existing clusters, set Rebalancing Status to Active using the Amazon MSK console, Amazon CLI, or SDK. For instructions, see Steady state rebalancing.

  • For automatic partition reassignment, the maximum number of partitions that might be supported per broker depends on the broker instance type. For more information, see Express broker partition quota.

  • You can't use partition reassignment APIs or third-party rebalancing tools when intelligent rebalancing is enabled. To use such APIs or third-party tools, you must first pause intelligent rebalancing for your MSK Express cluster.

  • Intelligent rebalancing does not rebalance internal topics. To rebalance internal topics after you scale out your cluster, pause intelligent rebalancing, manually rebalance the internal topics, and then resume intelligent rebalancing. For information about pausing and resuming intelligent rebalancing, see Steady state rebalancing.