Migrate a Kafka consumer group to the KIP-848 next-generation rebalance protocol

domain: kafka · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure all brokers are on Kafka 4.0 or later (KIP-848 reached GA in 4.0); verify with kafka-broker-api-versions.sh
  2. Update client libraries to a version that supports the new consumer group protocol (look for ConsumerGroupHeartbeat API support in the client changelog)
  3. Set group.protocol=consumer in the consumer configuration to opt the client into the KIP-848 server-side coordinator
  4. Deploy consumers with rolling restart; the new protocol is incremental — each consumer heartbeats individually and receives only its delta assignment without triggering a stop-the-world rebalance
  5. Monitor the group state via kafka-consumer-groups.sh --describe; under KIP-848 the group should show state 'Stable' continuously rather than cycling through 'PreparingRebalance' and 'CompletingRebalance'
  6. If mixed old/new protocol clients are detected the broker falls back to the classic protocol; ensure all consumers in the group upgrade before expecting incremental rebalancing

Known gotchas

Related routes

Configure Kafka consumer group cooperative sticky rebalancing
kafka.apache.org · 5 steps · unrated
Perform a rolling ZooKeeper-to-KRaft migration on an existing Kafka cluster using the five-phase procedure
kafka.apache.org · 6 steps · unrated
Enable Kafka static consumer group membership with group.instance.id to avoid rebalances on restart
kafka.apache.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans