Skip to main content
QUICK REVIEW

[論文レビュー] Scaling Hyperledger Fabric Using Pipelined Execution and Sparse Peers

Parth Thakkar, Senthil Nathan|arXiv (Cornell University)|Mar 11, 2020
Blockchain Technology Applications and SecurityComputer Science参考文献 16被引用数 17
ひとこと要約

本稿では、検証フェーズとコミットフェーズのパイプライン実行および、不要な取引コミットを回避するスパarsなピアを採用することで、パフォーマンスとコスト効率を向上させる再アーキテクチャ化されたHyperledger Fabric、SmartFabricを提案する。ブロック間での並列検証とI/Oオーバーヘッドの低減により、スマートファブリックは、オリジナルのファブリックと比較して、スループットを3倍に、スケールアップを12〜26倍に高速化し、コストを50〜87%低減する。

ABSTRACT

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%に向上させる。
  • 7種類の取引依存関係を追跡する待機中取引依存関係グラフを構築し、ブロック間での安全な並列検証を可能にする。
  • 必要な取引のみをコミットするスパースピアを設計し、組織ノード間での不要なCPUおよびI/O作業を回避する。
  • ピーク負荷時におけるパフォーマンス劣化を防ぐために、5〜10%の取引を延期するメカニズムを実装する。
  • 完全なブロックストア同期ではなくステートDBのコピーを活用することで、ピア同期時間を著しく短縮する自動スケーリングフレームワークを構築する。
  • 先行研究のブロックキャッシュを統合し、さらにブロック処理を高速化し、I/O遅延を低減する。

実験結果

リサーチクエスチョン

  • RQ1高リソース割り当てのもとでも、垂直および水平スケーリングの下でなぜHyperledger Fabricの取引スループットがうまくスケーリングしないのか。
  • RQ2特に許可型環境において、FabricのExecute-Order-Validate(EOV)モデルにおける主なパフォーマンスボトルネックは何か。
  • RQ3検証フェーズとコミットフェーズを再アーキテクチャ化することで、直列実行性に反しない範囲でCPU利用効率を向上させることは可能か。
  • RQ4スパースピアによる選択的取引コミットは、企業ブロックチェーンネットワークにおける不要作業を排除し、リソース効率を向上させることができるか。
  • RQ5最適化されたステート同期を用いることで、Fabricネットワークの動的スケーリングはどの程度高速化できるか。

主な発見

  • 垂直スケーリングにおいて、取引スループットは、vCPUが未使用のままにされ、CPU利用効率が40%から70%にしか上昇しないことから、うまくスケーリングされない。
  • 水平スケーリングでは、組織ピア間での取引検証およびコミットの重複により、リソースの浪費が顕著になるが、リソース割り当てが増加しても同様である。
  • 検証およびコミットフェーズのパイプライン実行により、パフォーマンスが1.4倍向上し、CPU利用効率が40%から70%に上昇する。
  • スパースピアにより不要作業が削減され、パフォーマンスが2.4倍向上し、パイプライン実行とスパースネスを併用することで、スループットが3倍に向上する。
  • スマートファブリックは、より小さなステートDB転送により、オリジナルのファブリックと比較してピア同期時間を複数倍短縮し、12〜26倍の高速スケールアップを実現する。
  • スマートファブリックは、リソースの過剰プロビジョニングを最小限に抑え、ネットワーク全体の利用効率を向上させることで、コストを50〜87%低減しながら、ファブリックのスループットを達成する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。