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

ELMo-Tune-V2:基于LLM辅助的全周期自动调优以优化基于LSM的键值存储

ELMo-Tune-V2: LLM-Assisted Full-Cycle Auto-Tuning to Optimize LSM-Based Key-Value Stores

Viraj Thakkar, Qi Lin, Kenanya Keandra Adriel Prasetyo, Raden Haryosatyo Wisjnunandono, Achmad Imam Kistijantoro, Reza Fuad Rachmadi, Zhichao Cao

AI总结:

本文提出ELMo-Tune-V2框架,利用大型语言模型实现LSM键值存储的全周期自动调优,通过工作负载合成、迭代微调和实时调整,在RocksDB上取得最高14倍性能提升,并分别提升NebulaGraph和Kvrocks性能34%和26%。

摘要:

基于日志结构合并树的键值存储(LSM-KVS)是一种基础存储引擎,服务于多种现代工作负载、系统和应用。为适应不同的使用场景,LSM-KVS提供了庞大的配置空间,控制压缩、刷新和缓存大小等核心参数,每个参数都消耗共享的CPU、内存和存储资源池。导航LSM-KVS配置空间需要了解每个配置对预期工作负载和底层硬件的影响。除了昂贵且耗时的人工专家调优之外,现有的LSM-KVS调优解决方案侧重于针对特定工作负载期望进行调优,且仅限于参数的一小部分子集。本文介绍了ELMo-Tune-V2,一个以大型语言模型(LLMs)为基础集成的框架,以展示在现代数据系统优化问题中应用现代LLMs的潜力。ELMo-Tune-V2利用LLMs的上下文推理、跨领域和生成能力,执行1)对LSM-KVS工作负载的自主表征和建模,2)使用跨领域知识在广泛参数空间上进行自动调优,以及3)对LSM-KVS进行实时动态配置调整。ELMo-Tune-V2整合了三项创新:基于LLM的工作负载合成用于自适应基准生成,反馈驱动的迭代微调用于配置优化,以及实时调优以处理不断变化的工作负载。通过使用RocksDB在多种真实世界应用和不同场景下的详细评估,与默认RocksDB配置相比,ELMo-Tune-V2在我们的YCSB基准测试中实现了高达约14倍的性能提升,并且我们与上层应用NebulaGraph和Kvrocks的端到端测试分别展示了34%和26%的性能提升。

英文摘要:

Log-Structured Merge-tree-based Key-Value Store (LSM-KVS) is a foundational storage engine serving diverse modern workloads, systems, and applications. To suit varying use cases, LSM-KVS allows a vast configuration space that controls core parameters like compaction, flush, and cache sizes, each consuming a shared pool of CPU, Memory, and Storage resources. Navigating the LSM-KVS configuration space necessitates knowledge of the impact of each configuration on the expected workload and underlying hardware. Beyond expensive and time-intensive human-expert-based tuning, existing LSM-KVS tuning solutions focus on tuning with specific workload expectations while limited to a narrow subset of parameters. This paper introduces ELMo-Tune-V2, a framework that integrates Large Language Models (LLMs) at its foundation to demonstrate the potential of applying modern LLMs in data system optimization problems. ELMo-Tune-V2 leverages the contextual reasoning, cross-domain, and generative capabilities of LLMs to perform 1) self-navigated characterization and modeling of LSM-KVS workloads, 2) automatic tuning across a broad parameter space using cross-domain knowledge, and 3) real-time dynamic configuration adjustments for LSM-KVS. ELMo-Tune-V2 integrates three innovations: LLM-based workload synthesis for adaptive benchmark generation, feedback-driven iterative fine-tuning for configuration refinement, and real-time tuning to handle evolving workloads. Through detailed evaluation using RocksDB under several real-world applications across diverse scenarios, ELMo-Tune-V2 achieves performance improvements up to ~14X our YCSB benchmarks compared against default RocksDB configurations, and our end-to-end tests with upper-level applications, NebulaGraph and Kvrocks, demonstrate performance gains of 34% and 26%, respectively.

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

↑