arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2506.23985cs.CRcs.DB
收藏

面向零停机数据库加密的锁预测

Lock Prediction for Zero-Downtime Database Encryption

Mohamed Sami Rakha, Adam Sorrenti, Greg Stager, Walid Rjaibi, Andriy Miranskyy

AI总结:

本研究提出一种基于深度学习模型(如Transformer和LSTM)预测数据库锁序列的方法,利用TPC-C基准数据训练,在表级和页级锁预测中分别达到49%和66%的准确率,为实现零停机、低开销的在线数据库加密提供了实用路径。

摘要:

现代企业数据库系统在平衡数据安全与性能方面面临重大挑战。确保对敏感信息进行强加密对于系统符合安全标准至关重要。尽管整体数据库加密提供了强大的保护,但现有的数据库系统通常需要完整的备份和恢复周期,导致停机时间延长和存储使用量增加。这使得在高吞吐量环境中难以在不中断关键操作的情况下实施在线加密技术。为了应对这一挑战,我们设想了一种解决方案,能够实现与系统活动同步的在线数据库加密,从而消除对停机、存储开销或全数据库重处理的需求。这一愿景的核心在于预测数据库中接下来将被访问的部分,从而允许在线应用加密。作为迈向该解决方案的一步,本研究提出了一种预测方法,利用深度学习模型来预测数据库锁序列,并以 IBM Db2 作为所研究的数据库系统。在本研究中,我们从 TPC-C 基准工作负载中收集了一个专门的数据集,利用锁事件日志进行模型训练和评估。我们应用了 Transformer 和 LSTM 等深度学习架构,评估了各种表级和页级锁预测的模型。我们在不同的预测时间跨度与时间线上,将训练后的模型与 Naive Baseline 的准确性进行了基准测试。研究实验表明,所提出的基于深度学习的模型在表级预测中实现了高达 49% 的平均准确率,在页级预测中达到了 66%,优于 Naive Baseline。通过预测接下来哪些表和页将被锁定,所提出的方法向在线加密迈进了一步,为实现安全、低开销的数据库系统提供了一条实用路径。

英文摘要:

Modern enterprise database systems face significant challenges in balancing data security and performance. Ensuring robust encryption for sensitive information is critical for systems' compliance with security standards. Although holistic database encryption provides strong protection, existing database systems often require a complete backup and restore cycle, resulting in prolonged downtime and increased storage usage. This makes it difficult to implement online encryption techniques in high-throughput environments without disrupting critical operations. To address this challenge, we envision a solution that enables online database encryption aligned with system activity, eliminating the need for downtime, storage overhead, or full-database reprocessing. Central to this vision is the ability to predict which parts of the database will be accessed next, allowing encryption to be applied online. As a step towards this solution, this study proposes a predictive approach that leverages deep learning models to forecast database lock sequences, using IBM Db2 as the database system under study. In this study, we collected a specialized dataset from TPC-C benchmark workloads, leveraging lock event logs for model training and evaluation. We applied deep learning architectures, such as Transformer and LSTM, to evaluate models for various table-level and page-level lock predictions. We benchmark the accuracy of the trained models versus a Naive Baseline across different prediction horizons and timelines. The study experiments demonstrate that the proposed deep learning-based models achieve up to 49% average accuracy for table-level and 66% for page-level predictions, outperforming a Naive Baseline. By anticipating which tables and pages will be locked next, the proposed approach is a step toward online encryption, offering a practical path toward secure, low-overhead database systems.

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

↑