arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.21286cs.DCcs.DB
收藏

Ira:分布式系统中高效的事务回放

Ira: Efficient Transaction Replay for Distributed Systems

Visa Research(Visa 研究院)

Adithya Bhat, Harshal Bhadreshkumar Shah, Mohsen Minaei

AI总结:

Ira通过在事务批次中传输紧凑的提示来加速备份回放,利用主节点已执行事务的知识优化回放效率,提升了Ethereum区块执行的缓存管理。

摘要:

在主-备复制中,共识延迟受限于备节点回放(重新执行)主节点提出的事务所需的时间。本文提出Ira框架,通过在事务批次中传输紧凑的提示来加速备份回放。我们的关键洞察是,主节点已执行事务,拥有对未来访问模式的了解,正是最优回放所需的信息。我们以以太坊为案例研究,提出Ira-L协议,改进以太坊区块执行的缓存管理。主节点实施Ira-L提供提示,包含区块中使用的键的工作集和每个键的一个字节元数据指示读取的表。备份使用这些提示实现高效的区块回放。我们评估了Ira-L与最先进的以太坊客户端reth在两周的以太坊主网活动(100,800个区块,包含超过2400万笔交易)的性能。我们的提示紧凑,每个区块添加中位数47KB压缩(约5%的区块负载)。我们观察到,顺序提示生成和区块执行对主节点造成28.6%的总时间开销,尽管提示的直接成本是执行时间的10.9%;所有这些都可以在生产部署中进行流水线和并行化。在备份侧,我们观察到Ira-L在基准reth上实现了每个区块的中位数25倍的加速。使用16个预取线程,汇总回放时间从6.5小时降至16分钟(23.6倍的总时间加速)

英文摘要:

In primary-backup replication, the consensus latency is bounded by the time for backup nodes to replay (re-execute) transactions proposed by the primary. Our key insight is that the primary, having already executed transactions, possesses knowledge of future access patterns which is the information needed for optimal replay by the backups. In this work, we present Ira, a framework to accelerate backup replay by transmitting compact hints alongside transaction batches. We use Ethereum for our case study and present a concrete protocol, Ira-L, within our framework to improve cache management of Ethereum block execution. The primaries implementing Ira-L provide hints that consist of the working set of keys used in an Ethereum block and one byte of metadata per key indicating the table to read from, and backups use these hints for efficient block replay. We evaluated Ira-L against the state-of-the-art Ethereum client reth over two weeks of Ethereum blocks (100,800 blocks, 24 million transactions). Our hint generation adds 10.9% overhead to primary execution time. On the backup, our hint-driven prefetching speeds up aggregate replay by 5.2x with a single prefetch thread, and by 23.6x with 16 threads. Our hints add a median of 47 KB compressed metadata per block (~5% of block payload).

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

↑