简体   繁体   中英

What is the use-case for setting Kafka's replication factor to 0 in production?

为生产环境设置复制因子0是否无效,或者是否存在有意义的用例?

Replication factor = 1 means there is a single copy of your data. If your broker fails then you lost all your data.

Replication factor = 2 means you have 2x copies of your data. So when 1 node fails then you ends up with a single copy of your data. When your 2nd node fails that your data is lost.

Replication factor = n means you have Nx copies of your data.

Replication factor = 0 does not makes any sense at all.

复制因子必须大于0. Kafka不允许用户创建没有副本的主题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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