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

SLSM:Shared-Nothing数据库惰性模式迁移的高效策略

SLSM : An Efficient Strategy for Lazy Schema Migration on Shared-Nothing Databases

Zhilin Zeng, Hui Li, Xiyue Gao, Hui Zhang, Huiquan Zhang, Jiangtao Cui

AI总结:

针对shared-nothing数据库在线模式变更需等待大规模数据回填的问题,本文提出SLSM策略,通过保持新旧模式数据分布并融合迁移事务与用户事务,降低通信开销与事务等待,实现零停机高效迁移。

摘要:

通过为元数据变更引入中间状态,并确保集群中同一时间最多存在两个元数据版本,shared-nothing数据库能够进行在线、异步的模式变更。然而,该方法会导致新模式部署延迟,因为它需要等待海量数据回填。为缩短新模式可用前的服务真空期,本文提出一种名为SLSM的策略,用于在shared-nothing数据库上实现零停机模式迁移。基于单机数据库的惰性迁移,SLSM使旧模式和新模式保持相同的数据分布,从而降低shared-nothing数据库执行迁移事务的节点通信开销。此外,SLSM通过扩展分布式执行计划,将迁移事务与用户事务结合,使迁移事务涉及的数据能够直接服务于用户事务,大幅减少用户事务的等待时间。实验表明,与现有方案相比,我们的策略能够显著降低用户事务延迟,并提高数据迁移效率。

英文摘要:

By introducing intermediate states for metadata changes and ensuring that at most two versions of metadata exist in the cluster at the same time, shared-nothing databases are capable of making online, asynchronous schema changes. However, this method leads to delays in the deployment of new schemas since it requires waiting for massive data backfill. To shorten the service vacuum period before the new schema is available, this paper proposes a strategy named SLSM for zero-downtime schema migration on shared-nothing databases. Based on the lazy migration of stand-alone databases, SLSM keeps the old and new schemas with the same data distribution, reducing the node communication overhead of executing migration transactions for shared-nothing databases. Further, SLSM combines migration transactions with user transactions by extending the distributed execution plan to allow the data involved in migration transactions to directly serve user transactions, greatly reducing the waiting time of user transactions. Experiments demonstrate that our strategy can greatly reduce the latency of user transactions and improve the efficiency of data migration compared to existing schemes.

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

↑