对于 Hyperledger Fabric 生产部署,建议的 kafka 节点和排序节点数量是多少?

For Hyperledger Fabric production deployments what is the recommended number of kafka nodes and orderer nodes?

我最近能够为 Fabric 部署一个生产环境,我正在寻找在生产中部署 Fabric 网络应该考虑的因素。部署订购者和卡夫卡节点时,我需要考虑什么吗? IE 节点数和配置。我找不到太多关于生产级 Fabric 网络的信息。

根据本指南Bringing up a Kafka-based Ordering Service,我配置了 4 个用于生产的 kafka 节点。

在此处引用 Hyperledger Fabric 文档Docs » Bringing up a Kafka-based Ordering Service

Let K and Z be the number of nodes in the Kafka cluster and the ZooKeeper ensemble respectively:

  • At a minimum, K should be set to 4. (As we will explain in Step 4 below, this is the minimum number of nodes necessary in order to exhibit crash fault tolerance, i.e. with 4 brokers, you can have 1 broker go down, all channels will continue to be writeable and readable, and new channels can be created.)

  • Z will either be 3, 5, or > 7. It has to be an odd number to avoid split-brain scenarios, and larger than 1 in order to avoid single point of failures. Anything beyond 7 ZooKeeper servers is considered an overkill.

2020 年 11 月 14 日更新 请注意,Hyperledger 已弃用基于 Kafka 的排序服务网络。建议在生产环境中使用 Raft 订购服务。