简体   繁体   English

仅使用最少的异步副本提交消息?

[英]Commit message with only min insync replicas?

当我在我的 Kafka Producer 中配置对所有ACKs=all的确认,并且min.insync.replicas =2 和replicas.factor =3 时,同步列表中只有 2 个代理 isr=2-3(考虑到代理 4 失败),是否将提交消息?

acks=all means - wait for ack from all available in-sync-replicas. acks=all 表示 - 等待来自所有可用同步副本的 ack。

min.insync.replicas=2 means - when acks=all make sure you have at least 2. min.insync.replicas=2 表示 - 当 acks=all 确保您至少有 2 个。

so, the answer is YES, it will be committed, event if the third replica is down.所以,答案是肯定的,如果第三个副本关闭,它将被提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM