Plan a
ZooKeeper to KRaft migration for a telecom Kafka cluster in your data center
Kafka 4.x runs in KRaft mode only, and the Apache documentation says that moving a cluster from ZooKeeper to KRaft needs a bridge release, which is Kafka 3.9 (Apache Kafka 4.4 docs, checked 23 Nov 2026). The migration itself is four phases: provision a KRaft controller quorum with the cluster's existing ID, put brokers into migration mode with a rolling restart, convert each broker to KRaft, then finalize by restarting the controllers without migration enabled. Rollback is possible only until finalization, and the 3.9 documentation lists limits: a broker with several log directories that suffers a failure cannot migrate until repaired, and changing the metadata version during migration is not supported. A telecom cluster carrying call-detail and signalling events cannot lose data or ordering. OSStend writes the design, rehearses it on a copy, runs the migration in your data center and then runs Kafka 24/7. The target is the current 4.x line, 4.4.0 as of 22 October 2026.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Kafka
- ✓KRaft migration
- ✓Telecom
- Service
- Design, rehearsal and run
- Bridge release
- Kafka 3.9.1
- Phases
- Quorum, migration mode, brokers, finalize
- Rollback
- Until finalization
- Runs where
- Your data center
Typical situation
Trigger. The estate is on ZooKeeper-mode Kafka 3.x and wants the 4.x line, which runs in KRaft mode only.
Versions. Kafka 3.9.1 as the bridge release, then Apache Kafka 4.x in KRaft mode.
- Call-detail topics cannot lose data or order
- Rolling restarts inside change windows
- Brokers with several log directories
A typical situation, not a named customer.
A ZooKeeper to KRaft migration runs on the 3.9 bridge release: provision a controller quorum with the existing cluster ID, enable migration on brokers, convert brokers to KRaft, then finalize the controllers. Rollback ends at finalization. OSStend designs and rehearses it, runs it in your data center, then upgrades to Kafka 4.x.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
OSStend engineers design, move and run the cluster; you keep the application, the data and the decisions about it. The split below is what is set in the design you sign off, and it is written into the contract.
| Area | OSStend | You |
|---|---|---|
| Readiness check | Checks versions, log directories, ACLs and metadata version | Supplies broker and ZooKeeper access |
| Controller quorum design | Sizes it and assigns node IDs that do not clash with broker IDs | Provides hosts |
| Rehearsal | Runs the full migration on a copy and records timings | Reviews the report |
| Production migration | Runs each phase in your windows | Approves each phase |
| Rollback plan | Documents what to undo at each phase | Decides when to roll back |
| Upgrade to 4.x | Plans the move to the 4.x line after finalize | Approves |
| Run | 24/7 response, patching, lag alerts | Owns applications |
Where it can run
This design is for a data center cluster on hosts you own. The same plan works in your cloud account or in OSStend's cloud.
| Option | When it fits | Licence and source |
|---|---|---|
| Our cloud | A move to a dedicated KRaft cluster instead of migrating in place | Apache Kafka is Apache-2.0 (LICENSE; OSStend licensing review, 19 Nov 2026) |
| Your cloud account | ZooKeeper-mode clusters in your account | Same licence |
| Your data center | Telecom core systems on owned hosts | Same licence; OSStend operates it as contractor with a 24/7 response commitment |
Licence placement comes from the OSStend licensing review, 19 Nov 2026. This table is not legal advice.
How the design works
The plan follows the four phases in the 3.9 documentation, with a rehearsal in front. Times are typical and set in the design. Rollback is possible only while migration mode is active.
Readiness check, 3 to 5 days
Upgrade brokers to 3.9.1, set inter.broker.protocol.version to 3.9, and check log directories, ACLs and unsupported features.
Provision the quorum, 2 to 3 days
Format a controller with the cluster's existing ID, and set migration mode and the ZooKeeper connection on it.
Enter migration mode, 1 to 2 days
Reconfigure brokers and restart them one at a time. Migration starts after the last broker restarts.
Convert brokers, 3 to 7 days
Per broker: set process.roles=broker and node.id, remove ZooKeeper settings, restart, and check lag before the next.
Finalize and upgrade, 2 to 4 days
Remove migration mode from controllers and restart one at a time, retire ZooKeeper, then plan the 4.x upgrade.
process.roles=controller node.id=3000 controller.quorum.bootstrap.servers=ctl1:9093,ctl2:9093,ctl3:9093 controller.listener.names=CONTROLLER zookeeper.metadata.migration.enable=true zookeeper.connect=zk1:2181,zk2:2181,zk3:2181
Source: Kafka 3.9 KRaft operations and Kafka 4.4 KRaft operations, checked 23 Nov 2026. Controller node IDs must differ from existing broker IDs, because brokers and controllers share one ID space.
Cost basis
A KRaft migration adds hosts for a controller quorum and engineering time, and removes the ZooKeeper nodes at the end. No public list price applies to hosts you own.
| Item | During migration | After finalize |
|---|---|---|
| Running (typically three) | Retired | |
| Controller nodes | Added (typically three) | Kept |
| Brokers | Unchanged count | Unchanged count |
| Rehearsal environment | Temporary copy of the cluster | Released |
| Engineering time | Design, rehearsal, production | OSStend, quoted per design |
Node counts are the usual three-node quorum for each system, shown as arithmetic, not a vendor price.
OSStend's own price is quoted per design after a 45-minute workload review. It depends on the node design, the service level tier and where the cluster runs; see pricing.
What we watch on call
The migration has failure patterns at each phase. These are what we watch and the signal behind each.
- Migration stall.
- The log line that reports completed migration never appears; we check controller logs at TRACE for the migration package.
- Multiple log directories.
- A broker that has lost a directory cannot migrate until repaired.
- Under-replicated partitions.
- Count during each broker restart; we wait for zero before the next.
- Controller epoch mismatch.
- A KRaft controller epoch above the old ZooKeeper epoch can make a revert fail, so epochs are compared before any rollback.
- Security migration tool history.
- If it ran earlier, a malformed /migration node can stall migration.
- Metadata version change.
- Any change during migration is not supported, so it is frozen.
When OSStend is not the right fit
The plan fits a ZooKeeper-mode cluster that must reach the 4.x line without data loss. It does not when a fresh cluster and a mirror are simpler.
Contact us if
- ✓The cluster is large and a mirror move is not practical.
- ✓You want a rehearsed plan with a documented rollback.
- ✓Brokers can restart one at a time in windows.
Not a fit if
- ✕A new KRaft cluster and a mirror would be simpler.
- ✕Brokers use features the documentation lists as not yet migratable.
- ✕You cannot upgrade to the bridge release first.
Questions buyers ask
Short answers to the questions that come up most on this kind of move. Each can be checked against the sources linked above.
Can we migrate directly on Kafka 4.x?
No. The 4.4 documentation says a bridge release is needed, and the steps are in the 3.9 documentation.
Can we undo it?
Until you finalize. After that, reverting to ZooKeeper mode is not possible.
Is a mirror move better?
Sometimes. See the Kafka mirror migration use case.
Where is the engine page?
Managed Kafka shows the KRaft design.
Related pages
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
- Use caseKafka migration with MirrorMaker 2, no downtimeA Kafka migration with MirrorMaker 2 for a logistics estate: the config sequence, offset translation, cutover order, rollback and what to watch.
- KafkaManaged Kafka in your cloud or data centerManaged Kafka with the broker count, partition plan, KRaft, Connect and an Apicurio or Karapace schema registry designed for your estate, run 24/7 in your cloud or data center.
Plan your KRaft migration with an engineer
Bring the Kafka version, broker count and log directory layout. An engineer will outline the phases in 45 minutes.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





