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

现代大规模搜索引擎中的写-读解耦:架构、技术与新兴方法

Write-Read Decoupling in Modern Large-Scale Search Engines: Architectures, Techniques, and Emerging Approaches

Xin Liang, Qing Yang, Wenru Qiu, Wenjie Mao, Tianyu Ma, Minghui Zhu, Nan Wang

AI总结:

本文探讨了大规模搜索引擎中写入与读取延迟解耦的挑战,分析了五种主要架构方案,并介绍了ScaleSearch等新兴系统,旨在提升性能与可扩展性。

摘要:

大规模搜索引擎面临根本性矛盾:索引必须频繁更新以保持新鲜度,但更新会引发资源竞争,增加查询延迟。在主流Lucene架构中,由写入触发的段合并会与并发查询竞争CPU周期、磁盘I/O带宽和操作系统页缓存,这一问题称为写-读竞争。本文系统考察了行业和学术界为解耦写压力与读延迟而开发的架构解决方案,识别出五种主要模式:节点级读写分离、计算-存储分离、全内存索引、日志结构化写路径以及原地部分更新。本文调研了Elasticsearch、LinkedIn Galene、Uber Sia、Quickwit、Alibaba Havenask、Algolia、Milvus和Vespa等代表性系统,并讨论了新兴的ScaleSearch架构,该架构结合了计算-存储分离、全内存索引和专用写节点。ScaleSearch的关键贡献是按字段更新路由:每个字段分配自己的Kafka主题和更新路径,允许标量字段(价格、库存、标签)以O(1)的时间复杂度在RAM中原地更新并立即可见,而全文字段则遵循基于段的计算-存储路径。最后,本文讨论了混合向量-全文检索、无服务器部署和AI集成搜索等开放挑战。

英文摘要:

Large-scale search engines face a fundamental tension: the index must be updated frequently to maintain freshness, yet updates create resource contention that inflates query latency. In the dominant Lucene-based architecture, segment merges triggered by writes compete with concurrent queries for CPU cycles, disk I/O bandwidth, and operating-system page cache -- a problem we term \emph{write-read contention}. This survey systematically examines the architectural solutions that industry and academia have developed to decouple write pressure from read latency. We identify five principal patterns: (i)~node-level read-write separation; (ii)~compute-storage separation; (iii)~full in-memory indexing; (iv)~log-structured write paths; and (v)~in-place partial updates. We survey representative systems including Elasticsearch, LinkedIn Galene, Uber Sia, Quickwit, Alibaba Havenask, Algolia, Milvus, and Vespa, and discuss an emerging synthesis -- the ScaleSearch architecture -- that combines compute-storage separation with full in-memory indexing and dedicated write nodes. A key contribution of ScaleSearch is \emph{per-field update routing}: each field is assigned its own Kafka topic and update path, allowing scalar fields (price, stock, tags) to be updated in-place in $O(1)$ RAM with immediate visibility while full-text fields follow the segment-based compute-storage path. We conclude with open challenges in hybrid vector-and-full-text retrieval, serverless deployments, and AI-integrated search.

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

↑