QingCloudAppcenter / Kafka

Apache License 2.0
0 stars 3 forks source link

根据节点数量自动选择合适的 replication factor #20

Open hlwanghl opened 3 years ago

hlwanghl commented 3 years ago

https://github.com/QingCloudAppcenter/Kafka/blob/aa5141f56f7c36c9f0a7327cdcff1b46d772c9da/app/config.json#L212

增加一个选项 auto(或者 0)并作为默认值,避免出现这个值比节点数大的情况。