Quick revision
The short answer
Kafka places replicas on brokers only when partitions are created, so existing partitions stay on the six old brokers and the three new ones receive only new topics. To move load, we build a reassignment plan with kafka-reassign-partitions.sh --generate or, better, a balancer such as Cruise Control, review it, execute it in batches with a throttle, run --verify until it completes (which also removes the throttle), watch under-replicated partitions and latency, and finish with a preferred leader election.
What to remember
In this answer, we saw that Kafka places replicas only when partitions are created, so new brokers stay empty until we reassign. We built a plan with --generate or, better, Cruise Control, reviewed it with the current assignment saved for rollback, executed it in batches with a throttle, ran --verify until completion to clear the throttles, watched under-replicated partitions, latency and disk, estimated the duration from the bytes to move and spare network per broker, and finished with a preferred leader election and a check of disk, bytes and leader balance.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Kafka places replicas on brokers only when partitions are created, so existing partitions stay on the six old brokers and the three new ones receive only new topics. To move load, we build a reassignment plan with kafka-reassign-partitions.sh --generate or, better, a balancer such as Cruise Control, review it, execute it in batches with a throttle, run --verify until it completes (which also removes the throttle), watch under-replicated partitions and latency, and finish with a preferred leader election.
Why this question is asked
Adding brokers to relieve a busy cluster and seeing nothing change is a rite of passage for Kafka operators. The fix is well known, but doing it safely on a cluster already at 70 percent network is where experience shows: a careless reassignment can push the old brokers over the edge while it runs. Interviewers ask this scenario to see whether we understand why the new brokers are empty and can plan a move that production traffic does not feel. In this answer, we will explain the placement rule, build and review a plan, execute it with throttles in batches, estimate the duration, and finish by checking the balance.
1Why the New Brokers Stay Empty
Kafka decides where a partition's replicas live when the partition is created, and after that it never moves them on its own. Adding brokers to the cluster makes them available for future placements, but every existing partition keeps its replicas on the original six brokers. So the new brokers only receive partitions of topics created after they joined, or partitions added to existing topics, which explains why, a day later, they hold almost nothing. Moving existing load requires an explicit reassignment.
2Building a Plan and Reviewing It
kafka-reassign-partitions.sh can generate a plan: we give it the topics to move and the full list of brokers, and it proposes a new replica placement spread over all nine.
The generated plan is a starting point, not a final answer. It spreads replicas by count without knowing sizes or rates, and it often moves far more partitions than necessary, sometimes reshuffling replicas between old brokers. A balancer such as Cruise Control is better: it models each broker's disk, network in and out and leader count, proposes moves that reach balance with fewer bytes moved, and can execute them in controlled batches. Either way we review the plan: how many bytes move, which brokers send and receive, and that the first replica of each partition, its preferred leader, includes the new brokers so leadership, and therefore network load, also moves.
3Executing With a Throttle
Moving a replica means the new broker copies the whole partition from the leader while normal traffic continues. On brokers already at 70 percent network, an unthrottled copy would compete with producers and consumers. The throttle limits replication traffic for the moving partitions.
7 messages in order. Play them, or step through them one at a time.
Source and target both hold a copy until the move completes.
The --throttle value sets a replication rate limit on the brokers involved and marks the moving replicas as throttled. Running --verify until every partition reports completion is not optional: it is also what removes those throttle settings. Forgetting it leaves replication for those topics throttled indefinitely, which later shows up as followers that cannot keep up after an unrelated restart.
4Moving in Batches and Watching the Cluster
We move a batch of partitions at a time rather than the whole plan, starting with partitions that move the most load per byte. During each batch we watch UnderReplicatedPartitions, produce and fetch request latency, and producer error rates; if any rise beyond normal, we lower the throttle or pause before the next batch.
Disk needs attention too. A moving partition temporarily has an extra replica: the new copy grows on the target while the source copy stays until the move completes. On old brokers at 75 percent disk this does not free space until each batch finishes, so a batch must not be so large that the targets fill up first. Smaller batches free space on the old brokers sooner.
5Estimating Duration and Finishing
The throttle applies per broker, so total speed depends on how many brokers send and receive in parallel. Suppose each old broker holds 6 TB; balancing over nine brokers means each ends near 4 TB, so 12 TB must flow into the three new brokers, about 4 TB each. At a throttle of 80 MB/s into each new broker, 4 TB takes about 50,000 seconds, roughly 14 hours of copying, more if we lower the throttle during daily peaks when the old brokers' spare network is small. That estimate tells everyone how long the cluster will be in a mixed state.
When the last batch completes, we run a preferred leader election so each partition's leader is its preferred replica, now often on a new broker, which moves produce and fetch traffic too. Then we check that disk use, bytes in and out, and leader counts are even across all nine brokers.
6Follow-up questions
Why not raise the throttle to finish in an hour?
Because the copy competes with production traffic on the same network and disks. On brokers at 70 percent network at peak, a large throttle would push them toward saturation and raise latency for every client. A slower, steady move is safer; we can raise the throttle at night when traffic is low.
What does a balancer like Cruise Control add over the built-in tool?
It measures actual disk, network and leader load per broker, proposes moves that reach balance while moving fewer bytes, runs them in batches with concurrency limits, and can keep the cluster balanced continuously instead of in occasional large moves.
How do we roll back a reassignment that hurts the cluster?
Running kafka-reassign-partitions.sh with --cancel stops reassignments in progress and returns them to their original replicas. For completed batches, we apply the saved current assignment from the --generate output, again with a throttle.
7Conclusion
In this answer, we saw that Kafka places replicas only when partitions are created, so new brokers stay empty until we reassign. We built a plan with --generate or, better, Cruise Control, reviewed it with the current assignment saved for rollback, executed it in batches with a throttle, ran --verify until completion to clear the throttles, watched under-replicated partitions, latency and disk, estimated the duration from the bytes to move and spare network per broker, and finished with a preferred leader election and a check of disk, bytes and leader balance.
Open with
The new brokers are empty because Kafka places replicas only when a partition is created, and existing partitions never move on their own. So until I reassign, the new brokers only get new topics.
Then, if they want more
To move load, I would build a plan with kafka-reassign-partitions.sh generate for the chosen topics and the full broker list, saving the current assignment as the rollback plan, or better, use a balancer such as Cruise Control, which weighs disk, network and leader counts and moves fewer partitions.
I would review the plan before running it, including that preferred leaders land on the new brokers. I would execute it with a throttle, kafka-reassign-partitions.sh execute with the reassignment file and a throttle in bytes per second, and run verify until it reports completion, which also removes the throttle settings; forgetting that leaves replication throttled.
I would move in batches and watch UnderReplicatedPartitions, request latency and producer errors, remembering that a moving partition temporarily has an extra replica, so the target uses disk before the source copy is deleted.
The throttle applies per broker, so the total speed depends on how many brokers move data in parallel; I would estimate duration from the bytes to move and the spare network per broker. Finally I would run a preferred leader election and check that disk, bytes in and out, and leader counts are even.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Kafka documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Explain why, and describe how you move load to the new brokers safely while production...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-operations/c1d8960442/