Skip to main content
QUICK REVIEW

[논문 리뷰] Scaling Hyperledger Fabric Using Pipelined Execution and Sparse Peers

Parth Thakkar, Senthil Nathan|arXiv (Cornell University)|2020. 03. 11.
Blockchain Technology Applications and SecurityComputer Science참고 문헌 16인용 수 17
한 줄 요약

이 논문은 검증 및 커밋 단계의 파ipel라인 처리와 부족한 피어를 통해 재구성된 Hyperledger Fabric인 SmartFabric를 제안한다. 이는 중복된 트랜잭션 커밋을 방지함으로써 성능과 비용 효율성을 향상시킨다. 블록 간 병렬 검증과 I/O 오버헤드 감소를 통해 SmartFabric는 원본 Fabric 대비 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 네트워크의 동적 확장을 어느 정도 가속화할 수 있는가?

주요 결과

  • 수직 확장 조건에서 Hyperledger Fabric의 트랜잭션 처리량은 사용 가능한 vCPU가 낭비되며, CPU 활용도가 40%에서 70%로만 상승한다.
  • 수평 확장 조건에서는 조직 내 피어 간 중복된 트랜잭션 검증 및 커밋으로 인해 자원 낭비가 심각한데, 이는 자원 할당 증가에도 불구하고 그렇다.
  • 검증 및 커밋 단계의 파이프라인 처리로 성능이 1.4배 향상되었으며, CPU 활용도는 40%에서 70%로 상승했다.
  • 부족한 피어로 인해 중복 작업이 감소하고 성능이 2.4배 향상되었으며, 파이프라인 처리와 부족한 피어를 함께 적용하면 처리량이 3배 향상되었다.
  • SmartFabric는 상태 DB 전송 크기를 줄여 원본 Fabric 대비 피어 동기화 시간을 수 배 단축시켰으며, 이로 인해 12~26배 빠른 수평 확장이 가능해졌다.
  • 자원 과다 할당을 최소화하고 네트워크 전반의 활용도를 향상시킴으로써 SmartFabric는 원본 Fabric의 처리량을 50~87% 낮은 비용으로 달성했다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.