You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Kane Kim <ka...@gmail.com> on 2015/03/19 19:18:13 UTC

mirror maker and failover to another data center

Hello,

What's the best strategy for failover when using mirror-maker to replicate
across datacenters? As I understand offsets in both datacenters will be
different, how consumers should be reconfigured to continue reading from
the same point where they stopped without data loss and/or duplication?

Thanks.

Re: mirror maker and failover to another data center

Posted by Guozhang Wang <wa...@gmail.com>.
Hi Kane,

Unfortunately we do not have a perfect solution for this problem yet, since
as you said the offsets on different DCs are different.

At LinkedIn we bite the bullet on data duplication, i.e. when failover
happens, the consumer queries the other DC for some offsets appended some
time before the the failover time, and start consuming.

Guozhang

On Thu, Mar 19, 2015 at 11:18 AM, Kane Kim <ka...@gmail.com> wrote:

> Hello,
>
> What's the best strategy for failover when using mirror-maker to replicate
> across datacenters? As I understand offsets in both datacenters will be
> different, how consumers should be reconfigured to continue reading from
> the same point where they stopped without data loss and/or duplication?
>
> Thanks.
>



-- 
-- Guozhang