[论文解读] Scaling Hyperledger Fabric Using Pipelined Execution and Sparse Peers
本文提出 SmartFabric,一种重新设计的 Hyperledger Fabric,通过流水线化验证与提交阶段以及稀疏节点(sparse peers)来提升性能和成本效率,避免冗余的事务提交。通过实现跨区块的并行验证并减少 I/O 开销,SmartFabric 相较于原生 Fabric 实现了 3 倍的吞吐量提升、12–26 倍的更快扩展速度,以及 50–87% 的更低成本。
Permissioned blockchains are becoming popular as data management systems in the enterprise setting. Compared to traditional distributed databases, blockchain platforms provide increased security guarantees but significantly lower performance. Further, these platforms are quite expensive to run for the low throughput they provide. The following are two ways to improve performance and reduce cost: (1) make the system utilize allocated resources efficiently; (2) allow rapid and dynamic scaling of allocated resources based on load. We explore both of these in this work. We first investigate the reasons for the poor performance and scalability of the dominant permissioned blockchain flavor called Execute-Order-Validate (EOV). We do this by studying the scaling characteristics of Hyperledger Fabric, a popular EOV platform, using vertical scaling and horizontal scaling. We find that the transaction throughput scales very poorly with these techniques. At least in the permissioned setting, the real bottleneck is transaction processing, not the consensus protocol. With vertical scaling, the allocated vCPUs go under-utilized. In contrast, with horizontal scaling, the allocated resources get wasted due to redundant work across nodes within an organization. To mitigate the above concerns, we first improve resource efficiency by (a) improving CPU utilization with a pipelined execution of validation & commit phases; (b) avoiding redundant work across nodes by introducing a new type of peer node called sparse peer that selectively commits transactions. We further propose a technique that enables the rapid scaling of resources. Our implementation - SmartFabric, built on top of Hyperledger Fabric demonstrates 3x higher throughput, 12-26x faster scale-up time, and provides Fabric's throughput at 50% to 87% lower cost.
研究动机与目标
- 识别在垂直和水平扩展下 Hyperledger Fabric 的真实性能瓶颈。
- 通过消除组织内各节点间冗余工作,提升 CPU 和 I/O 利用率。
- 通过高效的节点状态同步,实现 Fabric 网络的快速、动态扩展。
- 在支持跨不同区块并行事务验证的同时,保持可串行化。
- 通过优化执行和稀疏节点架构,最小化资源过度配置,降低运营成本。
提出的方法
- 引入流水线执行模型,使跨区块的验证与提交阶段重叠,将 CPU 利用率从 40% 提升至 70%。
- 构建等待事务依赖图,追踪七类事务依赖关系,以实现跨区块的安全并行验证。
- 设计稀疏节点,仅提交必要事务,避免组织内节点间的冗余 CPU 和 I/O 操作。
- 实现延迟机制,将 5–10% 的事务延迟处理,防止高峰负载下的性能下降。
- 构建自动扩展框架,利用状态数据库复制而非完整区块存储同步,显著缩短节点同步时间。
- 集成先前工作的区块缓存机制,进一步加速区块处理并降低 I/O 延迟。
实验结果
研究问题
- RQ1为何在资源分配充足的情况下,Hyperledger Fabric 的事务吞吐量在垂直和水平扩展下仍表现不佳?
- RQ2在许可设置下,Fabric 的执行-排序-验证(EOV)模型的主要性能瓶颈是什么?
- RQ3如何重构事务验证与提交阶段,以在不违反可串行化前提下提升 CPU 利用率?
- RQ4通过稀疏节点实现选择性事务提交,能否消除冗余工作并提升企业区块链网络的资源效率?
- RQ5通过优化状态同步,Fabric 网络的动态扩展可被加速到何种程度?
主要发现
- 由于 vCPU 利用不足,Hyperledger Fabric 在垂直扩展下事务吞吐量表现不佳,CPU 利用率仅从 40% 提升至 70%。
- 尽管资源分配增加,水平扩展仍导致显著的资源浪费,原因在于组织内各节点间存在冗余的事务验证与提交。
- 验证与提交阶段的流水线执行使性能提升 1.4 倍,CPU 利用率从 40% 提升至 70%。
- 稀疏节点减少了冗余工作,性能提升 2.4 倍;流水线与稀疏性结合实现 3 倍吞吐量增益。
- 与原生 Fabric 相比,SmartFabric 显著缩短了节点同步时间,因状态数据库传输量更小,实现 12–26 倍的更快扩展。
- SmartFabric 通过最小化资源过度配置并提升全网利用率,在仅 50–87% 成本下达到 Fabric 的吞吐量。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。