Quick revision
The short answer
Growing the existing cluster means adding brokers on Kubernetes, with controllers reachable from both networks, moving partitions to them with throttled reassignments and retiring the VMs, so topics and offsets stay and clients only need bootstrap addresses that work throughout. Building a new cluster and replicating with MirrorMaker 2 allows a clean break in versions and settings but puts every team through a cut-over with translated offsets and possible duplicates. Growing usually wins when the networks can be bridged; a new cluster fits when they cannot or a new security model or naming is wanted. Either way we need stable DNS names, advertised listeners reachable from both networks, careful controller moves, batched reassignments, a rollback point per phase and a programme around it.
What to remember
In this answer, we compared growing the existing cluster onto Kubernetes, which keeps topics and offsets and spares clients but needs bridged networks, with building a new cluster and replicating through MirrorMaker 2, which allows a clean break but puts every service through a cut-over. Growing usually wins when networks can be bridged, and we planned it with stable bootstrap DNS, advertised listeners reachable from both networks, careful controller moves, batched throttled reassignments and rollback points, run as a programme with rehearsal, communication, success measures and a change freeze.
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.
Growing the existing cluster means adding brokers on Kubernetes, with controllers reachable from both networks, moving partitions to them with throttled reassignments and retiring the VMs, so topics and offsets stay and clients only need bootstrap addresses that work throughout. Building a new cluster and replicating with MirrorMaker 2 allows a clean break in versions and settings but puts every team through a cut-over with translated offsets and possible duplicates. Growing usually wins when the networks can be bridged; a new cluster fits when they cannot or a new security model or naming is wanted. Either way we need stable DNS names, advertised listeners reachable from both networks, careful controller moves, batched reassignments, a rollback point per phase and a programme around it.
Why this question is asked
Moving a running Kafka cluster to a new platform and a new network, under 200 services that cannot all change on the same day, is a project where the design choice at the start decides months of work. There are two fundamentally different approaches, and each pushes the cost onto different people. Interviewers ask this to see whether we can compare them honestly and plan the one we choose in enough detail to be safe. In this answer, we will describe both approaches, decide when each wins, plan the details of the move, and organise it as a programme.
1Approach 1: Grow the Existing Cluster Onto Kubernetes
Kafka lets a cluster span machines anywhere, as long as they can reach each other. So we can add new brokers running on Kubernetes to the existing cluster, move partitions onto them, and retire the VM brokers one by one. From the clients' point of view, nothing changes except which broker leads a partition: topic names, data and offsets stay exactly the same.
For this to work, the two networks must be bridged during the move. VM brokers and Kubernetes brokers replicate from each other, both must reach the KRaft controllers, and clients in both places must reach whichever broker leads their partitions, which means each broker's advertised listener must be reachable from every client network.
6 messages in order. Play them, or step through them one at a time.
Clients keep producing and consuming the whole time; only the replica set changes.
2Approach 2: Build a New Cluster and Replicate
Alternatively we build a fresh cluster on Kubernetes, replicate topics into it with MirrorMaker 2, and move applications over one by one: consumers first with translated offsets, then producers. The old cluster is retired when the last application has left.
This allows a clean break. The new cluster can run a newer version, a new security model, new naming conventions and new defaults, without carrying old settings over. But every one of the 200 services must cut over, each with a window where consumers may see duplicates because translated offsets are approximate, and producers and consumers of the same topic must be coordinated so that no data is written to the old cluster after its consumers have left.
3Which Approach Wins
When the networks can be bridged, growing the existing cluster usually wins, because the cost of the move stays with the platform team. Clients need at most a new bootstrap address, and if the bootstrap is a stable DNS name, not even that. The 200 teams barely notice.
A new cluster fits when the networks cannot be connected, for example for security or routing reasons, or when we want to change things that cannot change in place, such as the security model, topic naming or the cluster's identity. Another practical reason: some Kubernetes operators can only manage clusters they created and cannot adopt or join an existing one, so check what your operator supports before choosing.
| Factor | Grow the existing cluster | New cluster plus MirrorMaker 2 |
|---|---|---|
| Client impact | None or bootstrap DNS only | Every service cuts over |
| Offsets | Unchanged | Translated, some duplicates |
| Network requirement | Both networks bridged | Only replication link |
| Clean break in settings | No | Yes |
| Rollback | Reassign back to VMs | Move clients back |
| Operator support | Must be able to join | Builds its own cluster |
4Planning the Details of Growing in Place
Bootstrap first: clients should use a stable DNS name for bootstrap servers that we can point at any healthy brokers, so no client config changes when the VM brokers go away. Then the advertised listeners: each Kubernetes broker needs an address reachable from the VM network and from client networks, typically a per-broker load balancer or node port with a DNS name, and the VM brokers' advertised addresses must be reachable from Kubernetes.
The controllers move separately and carefully, because the quorum must keep a majority throughout. With a dynamic quorum (kraft.version 1, Kafka 3.9 and later) we can add a controller on Kubernetes and remove one on a VM, one at a time, with kafka-metadata-quorum.sh add-controller and remove-controller. With a static voters list, changing controllers is much harder, so we check this early and plan for it.
Reassignments go in batches sized so that the copy traffic and the extra disk use stay within capacity, for example a few terabytes per batch, with checks on latency and under-replication in between. Each phase has a rollback point: until a VM broker is decommissioned, partitions can be reassigned back to it.
5Running It as a Programme
A move of this size needs more than a runbook. We rehearse the whole migration on a staging cluster with production-like data and clients, including a rollback. We communicate with each team about what they will see, ideally nothing, and when. We agree success measures before starting: no data loss, produce and consume latency within limits during every batch, and no unplanned client changes. And we freeze unrelated changes to the cluster, such as upgrades or config experiments, during the move, so that any problem has one obvious cause.
Progress is reported per phase, partitions moved, brokers retired, controllers migrated, so stakeholders see the move advance and the platform team can slow down or stop at any rollback point if the measures go red.
6Follow-up questions
Can clients in the old network reach brokers in Kubernetes?
They must, for the grow-in-place approach, because any partition's leader may be on either side during the move. That usually means exposing each Kubernetes broker with its own reachable address and DNS name and configuring advertised listeners accordingly.
How long does moving the data take?
It depends on the volume and the throttle. Moving 200 TB at a throttled 500 MB/s across the cluster takes about 4.6 days of continuous copying, so a move of this size spans weeks once we add batching, checks and quiet periods.
What if the operator cannot join an existing cluster?
Then we either run the new brokers on Kubernetes without the operator during the move and adopt them later if the operator supports it, or we choose the new-cluster approach and replicate with MirrorMaker 2.
7Conclusion
In this answer, we compared growing the existing cluster onto Kubernetes, which keeps topics and offsets and spares clients but needs bridged networks, with building a new cluster and replicating through MirrorMaker 2, which allows a clean break but puts every service through a cut-over. Growing usually wins when networks can be bridged, and we planned it with stable bootstrap DNS, advertised listeners reachable from both networks, careful controller moves, batched throttled reassignments and rollback points, run as a programme with rehearsal, communication, success measures and a change freeze.
Open with
There are two ways to do this. The first is growing the existing cluster: add brokers on Kubernetes to the same cluster, with controllers reachable from both networks, move partitions to them with throttled reassignments in batches, then retire the VM brokers.
Then, if they want more
Topic names and offsets stay the same and clients only need bootstrap addresses that work throughout, ideally a stable DNS name so they change nothing. The second is building a new cluster on Kubernetes, replicating with MirrorMaker 2, and moving each application over with translated offsets.
That gives a clean break in version, settings and security model, but every one of 200 teams has to cut over, with possible duplicates and careful coordination of producers and consumers. If the networks can be bridged, I would grow the existing cluster, because the cost stays with the platform team.
I would pick a new cluster if the networks cannot be connected, if we want a new security model or naming, or if our operator cannot join an existing cluster.
For the plan, I need stable DNS for bootstrap, advertised listeners on every broker reachable from both networks, controllers moved one at a time, which is much easier with a dynamic quorum on 3.9 or later, reassignments in batches with capacity and latency checks, and a rollback point at each phase.
I would run it as a programme: rehearsal on staging, communication per team, agreed success measures, and a freeze on unrelated changes during the move.
About this answer
- Last updated
- 13 November 2026
- Versions it names
- Kafka 3.9
- 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 "Compare growing the existing cluster onto the new platform with building a new cluster...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-operations/0595bdc918/