尾部容错分布式搜索
Tail-Tolerant Distributed Search
摘要:
今天的搜索引擎每天处理数十亿的在线用户查询,收集大量的数据。为了扩展,它们将查询处理分布在许多节点上,其中每个节点保存并搜索索引的一个子集,称为分片。由于各种原因,例如高服务器负载和网络拥塞,来自一些节点的响应偶尔无法在合理的时间间隔内到达。搜索引擎通常需要以及时的方式响应,并且因此跳过这样的尾部延迟响应,这导致搜索质量的降低。在本文中,我们解决了响应失误,由于高尾延迟的目标,最大限度地提高搜索质量。今天的搜索提供者使用复制形式的冗余来减少响应失败,通过构建每个分片的多个副本并搜索所有副本。这种方法并不理想,因为它在搜索重复数据上浪费了资源。我们提出了两个策略来减少这种浪费。首先,我们提出了rSmartRed,一个用于复制索引的最佳分片选择方案。其次,在可行的情况下,我们建议用Repartition代替Replication,它构造独立的索引实例而不是精确的副本。我们分析证明,rSmartRed的选择是最佳的复制,和Repartition实现更好的搜索质量相比,复制。我们使用两个真实世界的数据集进行实证研究,证实了我们的结果,表明与目前使用的方法相比,rSmartRed提高了召回率。我们还表明,在典型的情况下,Repartition改进了复制。
英文摘要:
Today's search engines process billions of online user queries a day over huge collections of data. In order to scale, they distribute query processing among many nodes, where each node holds and searches over a subset of the index called shard. Responses from some nodes occasionally fail to arrive within a reasonable time-interval due to various reasons, such as high server load and network congestion. Search engines typically need to respond in a timely manner, and therefore skip such tail latency responses, which causes degradation in search quality. In this paper, we tackle response misses due to high tail latencies with the goal of maximizing search quality. Search providers today use redundancy in the form of Replication for mitigating response misses, by constructing multiple copies of each shard and searching all replicas. This approach is not ideal, as it wastes resources on searching duplicate data. We propose two strategies to reduce this waste. First, we propose rSmartRed, an optimal shard selection scheme for replicated indexes. Second, when feasible, we propose to replace Replication with Repartition, which constructs independent index instances instead of exact copies. We analytically prove that rSmartRed's selection is optimal for Replication, and that Repartition achieves better search quality compared to Replication. We confirm our results with an empirical study using two real-world datasets, showing that rSmartRed improves recall compared to currently used approaches. We additionally show that Repartition improves over Replication in typical scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。