gpt4 book ai didi

elasticsearch - 需要了解搜索池elasticsearch

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

Elasticsearch文档定义了搜索池:

For count/search operations, defaults to fixed, size 3x # of available processors. queue_size 1000.



因此,如果我有一个带有8核CPU的节点,那么它一次可以适应24个搜索操作。这是固定值。

但是我不明白“queue_size 1000”是什么意思。它如何影响搜索操作?

最佳答案

official docs中进行了解释:

The queue_size allows to control the size of the queue of pending requests that have no threads to execute them. By default, it is set to -1 which means its unbounded. When a request comes in and the queue is full, it will abort the request.



将其设置为1000意味着您可以有1000个待处理的待处理请求。

关于elasticsearch - 需要了解搜索池elasticsearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35403974/

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