摘要
Hyperledger Fabric将业务逻辑解耦,在提升系统灵活性的同时存在性能瓶颈,无法满足高并发快响应的业务需求。通过对Hyperledger Fabric共识机制中的背书、排序、验证3个阶段进行分析,为均衡背书节点性能并提高系统效率,设计基于动态负载均衡算法的提案分发优化方案。综合均衡指数、反馈周期等性能指标,设计节点负载和节点权值量化方法。通过采集节点负载信息计算并选取合理的反馈周期和影响权重以更新节点权值,同时结合加权轮询算法将交易提案分发至当前权重最大的节点进行背书,实现背书节点负载的动态均衡。在Caliper工具上的测试结果表明,优化方案提升了Hyperledger Fabric共识机制的请求处理性能,相比于原始方案的链码交易和查询吞吐量提高了17.53%和15.84%,平均时延下降了6.7%和18.2%。
Hyperledger Fabric decouples business logic.Although it improves system flexibility,it has performance bottlenecks and cannot satisfy the high concurrency or fast response needs of businesses.This study analyzes the three stages of endorsement,sorting,and verification in the Hyperledger Fabric consensus mechanism.To balance the performance of endorsement nodes and improve system efficiency,this study provides a proposal distribution optimization scheme based on a dynamic load balancing algorithm.The optimization scheme integrates performance indicators,such as the balance index and feedback cycle,and designs a quantification method for node loads and weights.The optimization scheme calculates and selects a reasonable feedback period and influence weight to update the node weight by collecting the node load information.Simultaneously,the scheme uses the weighted round robin algorithm to distribute the transaction proposal to the node with the current largest weight for endorsement to realize the dynamic balance of the endorsement node load.The test results on the Caliper tool show that the optimization scheme improves the request processing performance of the Hyperledger Fabric consensus mechanism.Compared with the original scheme,the chaincode transaction and query throughput of the optimization scheme is increased by 17.53%and 15.84%and the average delay is decreased by 6.7%and 18.2%,respectively.
作者
贺鹏飞
范鹏飞
尹千慧
王中训
张桐敬
梁大伟
HE Pengfei;FAN Pengfei;YIN Qianhui;WANG Zhongxun;ZHANG Tongjing;LIANG Dawei(School of Physics and Electronic Information,Yantai University,Yantai,Shandong 264005,China;Yantai Power Generation Plant,Huaneng Shandong Power Generation Co.,Ltd.,Yantai,Shandong 264002,China;Yantai Food and Drug Inspection and Testing Center,Yantai,Shandong 264000,China)
出处
《计算机工程》
CAS
CSCD
北大核心
2022年第11期170-176,共7页
Computer Engineering
基金
2021年度烟台市校地融合发展项目(1521001-WL21JY01)。