REST API

For some users and tasks it may be preferable to not use the Cruise Control web UI to execute tasks. The complete REST API is documented in the Cruise Control documentation located here. This page will describe some of the common tasks.

Start a rebalance

This will rebalanced your MSK Cluster based upon the currently calculated optimization plan. From a client machine that has access to Cruise Control on port 9091

curl -X POST http://cruisecontrol-host:9091/kafkacruisecontrol/rebalance

This will display the calculated plan. To continue on and execute the plan:

curl -X POST http://cruisecontrol-host:9091/kafkacruisecontrol/rebalance?dryrun=false

Query current partition load

This will provide you with the current, per partition, load on your MSK Cluster. From a client machine that has access to Cruise Control on port 9091.

curl -X GET http://cruisecontrol-host:9091/kafkacruisecontrol/load