Re: min.insync.replicas and producer acks
I mean, the producer acks to be 'none' On Sat, Jan 25, 2020 at 4:49 PM Pushkar Deole wrote: > Thank you for a quick response. > > What would happen if I set the producer acks to be 'one' and > min.insync.replicas to 2. In this case the producer will return when only > leader received the message but will not wait for other replicas to receive > the message. In this case, how min.insync.replicas of 2 will be guaranteed > by kafka? > > On Sat, Jan 25, 2020 at 12:50 PM Boyang Chen > wrote: > >> Hey Pushkar, >> >> producer ack only has 3 options: none, one, or all. You could not nominate >> an arbitrary number. >> >> On Fri, Jan 24, 2020 at 7:53 PM Pushkar Deole >> wrote: >> >> > Hi All, >> > >> > I am a bit confused about min.insync.replicas and producer acks. Are >> these >> > two configurations achieve the same thing? e.g. if I set >> > min.insync.replicas to 2, I can also achieve it by setting producer >> acks to >> > 2 so the producer won't get a ack until 2 replicas received the message? >> > >> >
Re: min.insync.replicas and producer acks
Pushkar, On Sat, 25 Jan 2020 at 11:19, Pushkar Deole wrote: > Thank you for a quick response. > > What would happen if I set the producer acks to be 'one' and > min.insync.replicas to 2. In this case the producer will return when only > leader received the message but will not wait for other replicas to receive > the message. In this case, how min.insync.replicas of 2 will be guaranteed > by kafka? > To be fair, this is documented across various areas on official channels, confluence pages, and confluent websites. We suggest that you explore them first to understand where the confusion is. If you believe something is incorrectly documented, or rather ambiguous, we will be happy to explain. Regards, > On Sat, Jan 25, 2020 at 12:50 PM Boyang Chen > wrote: > > > Hey Pushkar, > > > > producer ack only has 3 options: none, one, or all. You could not > nominate > > an arbitrary number. > > > > On Fri, Jan 24, 2020 at 7:53 PM Pushkar Deole > > wrote: > > > > > Hi All, > > > > > > I am a bit confused about min.insync.replicas and producer acks. Are > > these > > > two configurations achieve the same thing? e.g. if I set > > > min.insync.replicas to 2, I can also achieve it by setting producer > acks > > to > > > 2 so the producer won't get a ack until 2 replicas received the > message? > > > > > >
Re: min.insync.replicas and producer acks
Thank you for a quick response. What would happen if I set the producer acks to be 'one' and min.insync.replicas to 2. In this case the producer will return when only leader received the message but will not wait for other replicas to receive the message. In this case, how min.insync.replicas of 2 will be guaranteed by kafka? On Sat, Jan 25, 2020 at 12:50 PM Boyang Chen wrote: > Hey Pushkar, > > producer ack only has 3 options: none, one, or all. You could not nominate > an arbitrary number. > > On Fri, Jan 24, 2020 at 7:53 PM Pushkar Deole > wrote: > > > Hi All, > > > > I am a bit confused about min.insync.replicas and producer acks. Are > these > > two configurations achieve the same thing? e.g. if I set > > min.insync.replicas to 2, I can also achieve it by setting producer acks > to > > 2 so the producer won't get a ack until 2 replicas received the message? > > >
Re: min.insync.replicas and producer acks
Hey Pushkar, producer ack only has 3 options: none, one, or all. You could not nominate an arbitrary number. On Fri, Jan 24, 2020 at 7:53 PM Pushkar Deole wrote: > Hi All, > > I am a bit confused about min.insync.replicas and producer acks. Are these > two configurations achieve the same thing? e.g. if I set > min.insync.replicas to 2, I can also achieve it by setting producer acks to > 2 so the producer won't get a ack until 2 replicas received the message? >
min.insync.replicas and producer acks
Hi All, I am a bit confused about min.insync.replicas and producer acks. Are these two configurations achieve the same thing? e.g. if I set min.insync.replicas to 2, I can also achieve it by setting producer acks to 2 so the producer won't get a ack until 2 replicas received the message?