Skip to main content
QUICK REVIEW

[论文解读] Understanding the Scalability of Hyperledger Fabric

Minh Quang Nguyen, Dumitrel Loghin|arXiv (Cornell University)|Jul 21, 2021
Blockchain Technology Applications and SecurityComputer Science参考文献 8被引用 19
一句话总结

本文使用增强版基准测试工具 Caliper++ 对 Hyperledger Fabric v1.1 的可扩展性进行了评估,以分析 execute-order-validate 事务模型在大规模环境下的表现。研究发现,执行阶段与排序阶段之间的通信开销是主要瓶颈,表明扩展 Kafka 集群无法提升吞吐量,而增加背书节点则因协调开销增加而导致性能下降。

ABSTRACT

The rapid growth of blockchain systems leads to increasing interest in understanding and comparing blockchain performance at scale. In this paper, we focus on analyzing the performance of Hyperledger Fabric v1.1 - one of the most popular permissioned blockchain systems. Prior works have analyzed Hyperledger Fabric v0.6 in depth, but newer versions of the system undergo significant changes that warrant new analysis. Existing works on benchmarking the system are limited in their scope: some consider only small networks, others consider scalability of only parts of the system instead of the whole. We perform a comprehensive performance analysis of Hyperledger Fabric v1.1 at scale. We extend an existing benchmarking tool to conduct experiments over many servers while scaling all important components of the system. Our results demonstrate that Fabric v1.1's scalability bottlenecks lie in the communication overhead between the execution and ordering phase. Furthermore, we show that scaling the Kafka cluster that is used for the ordering phase does not affect the overall throughput.

研究动机与目标

  • 提供对 Hyperledger Fabric v1.1 在大规模环境下的全面性能评估,解决以往基准测试研究中仅关注小型网络或孤立组件的局限性。
  • 研究关键系统组件(尤其是基于 Kafka 的排序服务和背书节点)的扩展对端到端吞吐量和延迟的影响。
  • 开发并开源 Caliper++,即 Hyperledger Caliper 的增强版本,以支持对 Fabric 在不同节点配置下的分布式基准测试。
  • 识别并量化 Fabric v1.1 中 execute-order-validate 模型的主要可扩展性瓶颈。
  • 通过提供权限区块链部署中性能权衡的实证证据,为未来系统设计提供指导。

提出的方法

  • 通过自定义脚本扩展 Hyperledger Caliper,以支持对具有不同节点数量和类型的分布式 Fabric 网络的配置、部署和基准测试。
  • 在最多 48 个节点的本地集群上进行实验,通过改变背书节点数(N)、客户端数(C)和 Kafka 代理数(K),评估 execute-order-validate 模型各阶段的可扩展性。
  • 在不同配置下测量吞吐量和延迟,包括调整 Kafka 复制因子和同步副本设置,以隔离集群内通信开销的影响。
  • 使用基于日志的监控方法,计算 'Enqueueing envelope...' 消息与 'Envelope enqueued successfully' 消息的比例,量化排序服务效率并识别通信瓶颈。
  • 在固定总请求速率(C×T = 300 和 400 tps)的前提下扩展 Kafka 代理,评估其对系统吞吐量和延迟的影响。
  • 对比极端 Kafka 配置——最小复制(replication.factor=1)与最大容错(replication.factor=15)——以隔离集群内通信开销对整体性能的影响。

实验结果

研究问题

  • RQ1在大规模环境下使用 execute-order-validate 事务模型时,Hyperledger Fabric v1.1 的主要可扩展性瓶颈是什么?
  • RQ2扩展 Kafka 集群如何影响 Fabric v1.1 的整体吞吐量和延迟?
  • RQ3增加背书节点数量在多大程度上会降低系统性能,原因是什么?
  • RQ4Kafka 内部通信开销是否显著影响 Fabric 的事务吞吐量?
  • RQ5在可扩展性和吞吐量稳定性方面,Fabric v1.1 与早期版本及其他区块链系统相比表现如何?

主要发现

  • 负责执行和验证事务的背书节点是主要可扩展性瓶颈,因为增加背书节点会导致更高的通信开销,从而降低性能。
  • 'Enqueueing envelope...' 与 'Envelope enqueued successfully' 消息的比例平均为 1.7,表明仅有约 58.8% 的事务能成功排序,凸显了排序阶段的通信低效。
  • 扩展 Kafka 集群无法提升整体吞吐量,因为性能仍受执行与排序阶段之间通信开销的限制。
  • Kafka 集群内部通信开销对系统吞吐量影响可忽略,因为在最小和最大复制设置下的性能几乎相同。
  • Fabric v1.1 的吞吐量在最多 48 个节点时保持稳定,但系统的可扩展性受限于 execute-order-validate 流水线中的协调成本,而非 Kafka 排序服务本身。
  • 与早期版本(如 v0.6)相比,Fabric v1.1 展现出更好的可扩展性,但其吞吐量在真实工作负载下仍受限,尤其与 Ethereum 和 Parity 等系统相比,后者在超过 32 个节点后仍能保持稳定的吞吐量。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。