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

数据库管理系统实时补丁技术探讨 [扩展版]

The Case for DBMS Live Patching [Extended Version]

Michael Fruth, Stefanie Scherzinger

AI总结:

本文从DBMS视角系统探讨实时补丁技术,提出注入静止点的特定领域策略以实现线程安全迁移,实验证明其实时更新可行且延迟开销可控。

摘要:

传统上,当数据库管理系统(DBMS)的代码需要更新时,系统会重启且数据库客户端会遭遇停机,或者提供商会实例化热备实例并转移工作负载。我们研究了第三种选项:对DBMS二进制文件进行实时补丁。对于某些代码更改,实时补丁允许在不重启的情况下修改内存中的应用程序代码。内存状态和所有客户端连接都可以得到维持。尽管实时补丁已在操作系统研究社区中被探索,但它在DBMS研究中仍是一个盲点。在这篇实验、分析与基准测试文章中,我们从DBMS的角度系统地探索了这一领域。我们讨论了在实时补丁方面,数据库管理系统与通用多线程应用的区别。随后,我们提出了将静止点注入DBMS源代码的特定领域策略,以便线程能够安全地迁移至打过补丁的进程版本。我们通过实验研究了查询工作负载与不同静止方法之间的相互作用,同时监测了事务吞吐量和尾延迟。结果表明,实时补丁是更新数据库管理系统的一种可行选项,因为数据库提供商能够针对客户端的延迟开销做出明智的决策。

英文摘要:

Traditionally, when the code of a database management system (DBMS) needs to be updated, the system is restarted and database clients suffer downtime, or the provider instantiates hot-standby instances and rolls over the workload. We investigate a third option, live patching of the DBMS binary. For certain code changes, live patching allows to modify the application code in memory, without restart. The memory state and all client connections can be maintained. Although live patching has been explored in the operating systems research community, it remains a blind spot in DBMS research. In this Experiment, Analysis & Benchmark article, we systematically explore this field from the DBMS perspective. We discuss what distinguishes database management systems from generic multi-threaded applications when it comes to live patching. We then propose domain-specific strategies for injecting quiescence points into the DBMS source code, so that threads can safely migrate to the patched process version. We experimentally investigate the interplay between the query workload and different quiescence methods, monitoring both transaction throughput and tail latencies. We show that live patching can be a viable option for updating database management systems, since database providers can make informed decisions w.r.t. the latency overhead on the client side.

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

↑