Then you'll have under-replicated partitions. However, even if you have 3
brokers with a replication factor of 2 and you lose a single broker you'll
still likely have under-replicated partitions.
Partitions are assigned to brokers, 1 broker will be the leader and n
brokers will be followers. If any of the brokers with replicas of the
partition on it crash then you'll have under-replicated partitions.


On 16 February 2016 at 14:45, Sean Morris (semorris) <semor...@cisco.com>
wrote:

> So if I have a replication factor of 2, but only 2 brokers, then
> replication works, but what if I lose one broker?
>
> Thanks,
> Sean
>
> On 2/16/16, 9:14 AM, "Damian Guy" <damian....@gmail.com> wrote:
>
> >Hi,
> >
> >You need to have at least replication factor brokers.
> >replication factor  = 1 is no replication.
> >
> >HTH,
> >Damian
> >
> >On 16 February 2016 at 14:08, Sean Morris (semorris) <semor...@cisco.com>
> >wrote:
> >
> >> Should your number of brokers be atleast one more then your replication
> >> factor of your topic(s)?
> >>
> >> So if I have a replication factor of 2, I need atleast 3 brokers?
> >>
> >> Thanks,
> >> Sean
> >>
> >>
>
>

Reply via email to