gpt4 book ai didi

elasticsearch - 超时为什么不终止elasticsearch中的搜索请求处理?

转载 作者:行者123 更新时间:2023-12-02 23:02:41 26 4
gpt4 key购买 nike

正如他们在docs中所说的:

It should be noted that this timeout does not halt the execution of the query; it merely tells the coordinating node to return the results collected so far and to close the connection. In the background, other shards may still be processing the query even though results have been sent.



想知道为什么不应该在由于超时而返回结果后立即终止处理;如果它知道会产生更多结果没关系吗?

最佳答案

在分布式系统中,协调这样的事情并非易事。开发人员只是认为其他东西更重要,因此暂时将其遗漏。

关于elasticsearch - 超时为什么不终止elasticsearch中的搜索请求处理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30289856/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com