arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.14737cs.DC
收藏

一种基于递归的分片区块链负载均衡算法

A Consensus-Based Load-Balancing Algorithm for Sharded Blockchains

M. Toulouse, H. K. Dai, Q. L. Nguyen

摘要:

公共区块链是分散的网络,每个参与节点执行相同的决策过程。这种形式的去中心化不能很好地扩展,因为相同的数据存储在每个网络节点上,并且因为所有节点都必须在确认之前验证每个交易。一种解决方案将区块链网络的节点分解为称为“分片”的子集,每个分片并行处理和存储不相交的交易集。为了充分利用分片区块链的并行性,分片的处理负载必须均匀分布。然而,计算平衡工作负载的问题在理论上是困难的,并且在实践中进一步复杂,因为事务处理时间在被分配给分片之前是未知的。在本文中,我们介绍了一种动态工作负载平衡算法,其中根据分片最近的工作负载历史定期调整事务到分片的分配策略。我们的算法是基于共识的负载均衡算法的分片区块链的适应。它是一种完全分布式的算法,与基于网络的应用程序(如区块链)内联。根据对三个知名区块链平台的交易进行分片的模拟,报告了一些初步结果。

英文摘要:

Public blockchains are decentralized networks where each participating node executes the same decision-making process. This form of decentralization does not scale well because the same data are stored on each network node, and because all nodes must validate each transaction prior to their confirmation. One solution approach decomposes the nodes of a blockchain network into subsets called "shards", each shard processing and storing disjoint sets of transactions in parallel. To fully benefit from the parallelism of sharded blockchains, the processing load of shards must be evenly distributed. However, the problem of computing balanced workloads is theoretically hard and further complicated in practice as transaction processing times are unknown prior to be assigned to shards. In this paper we introduce a dynamic workload-balancing algorithm where the allocation strategy of transactions to shards is periodically adapted based on the recent workload history of shards. Our algorithm is an adaptation to sharded blockchains of a consensus-based load-balancing algorithm. It is a fully distributed algorithm inline with network based applications such as blockchains. Some preliminary results are reported based on simulations that shard transactions of three well-known blockchain platforms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑