---
title: "KIP-545 explained: MirrorMaker 2 consumer offset sync"
description: "KIP-545 in plain words: MirrorMaker 2 writes translated consumer offsets into the target cluster, so consumers fail over without tooling."
url: https://monedula.dev/kafka/kips/kip-545/
---

# KIP-545: MirrorMaker 2 syncs consumer offsets to the target

Across clusters · Shipped · since Kafka 2.7 · status checked November 2026.

KIP-545 lets MirrorMaker 2 write translated consumer group offsets straight into the target cluster. A consumer that fails over to the other cluster then starts near where it stopped, without a separate tool. It is off by default and turned on with sync.group.offsets.enabled=true.

## At a glance

- Proposal: KIP-545, support automated consumer offset sync across clusters in MM 2.0
- Status: Shipped. Since Kafka 2.7 (2020), opt-in with sync.group.offsets.enabled.
- Area: Across clusters
- Proposal page: [KIP-545 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-545%3A+support+automated+consumer+offset+sync+across+clusters+in+MM+2.0)

## Why it was needed

MirrorMaker 2 (KIP-382) already translated committed offsets, because a record sits at a different offset in the target cluster, but it only published them as checkpoints. Before a failover someone had to read the checkpoints and reset each consumer group, at the worst possible moment.

## What it changes

The checkpoint task periodically writes the translated offsets into the target's __consumer_offsets for each mirrored group. It only does so while the group has no active members on the target, and never moves an offset backwards. Translation is approximate, so after a failover consumers may re-read a few records.

## How to use it

- Set sync.group.offsets.enabled=true for the flow, for example primary->dr.sync.group.offsets.enabled=true; sync.group.offsets.interval.seconds (default 60) sets how often.
- Keep emit.checkpoints.enabled=true (the default); the offsets come from the checkpoints.

## Where it stands

Shipped in Kafka 2.7 and part of MirrorMaker 2 ever since. Offset-preserving mirrors, Confluent Cluster Linking and Apache Kafka Cluster Mirroring (KIP-1279), avoid translation altogether.

## What comes next

Stable. The old MirrorMaker metrics are deprecated (KIP-1280) and go away in Kafka 5.0.

## See it in the simulator

- [MirrorMaker 2 offset translation for Kafka consumer failover](https://monedula.dev/kafka-simulator/scenarios/offset-translation-checkpoint/) (Offset translation across clusters), step 2: First checkpoint: committed offset 3 translated to dr. g1 has consumed and committed offsets 0,1,2 (committed = 3). The t=1000 checkpoint records that translated offset on the link (open the mm-1 link inspector → offset checkpoints). The mirror has kept up so RPO is 0. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=18.2.4&t=1)
- [MirrorMaker 2 offset translation for Kafka consumer failover](https://monedula.dev/kafka-simulator/scenarios/offset-translation-checkpoint/) (Offset translation across clusters), step 4: Failover: consumer resumes at the checkpoint (offset 3), not 5. g1 is promoted onto dr's primary.orders. Offset translation resumes it at the last checkpointed offset (3), NOT its live committed (5) - so records 3,4 will be reprocessed. RPO is still 0 (all data mirrored); the only cost is reprocessing the un-checkpointed tail. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=18.2.4&t=3)

## Sources

- [KIP-545: support automated consumer offset sync across clusters in MM 2.0](https://cwiki.apache.org/confluence/display/KAFKA/KIP-545%3A+support+automated+consumer+offset+sync+across+clusters+in+MM+2.0)
- [Apache Kafka 4.4: MirrorMaker configs](https://kafka.apache.org/44/configuration/mirrormaker-configs/)

## Related KIPs

- [KIP-382 explained: MirrorMaker 2 for Kafka replication](https://monedula.dev/kafka/kips/kip-382/)
- [KIP-1279 explained: Apache Kafka Cluster Mirroring](https://monedula.dev/kafka/kips/kip-1279/)
