gpt4 book ai didi

elasticsearch - 拒绝执行 org.elasticsearch.transport.TransportService 错误

转载 作者:行者123 更新时间:2023-11-29 02:43:42 25 4
gpt4 key购买 nike

我正在尝试运行 Elasticsearch 并使用以下命令来放置数据-

'curl -XPOST http://localhost:9200/_bulk?pretty --data-binary @data_.json'

但我收到以下错误-

    "create" : {
"_index" : "appname-docm",
"_type" : "HYD",
"_id" : "AVVYfsk7M5xgvmX8VR_B",
"status" : 429,
"error" : {
"type" : "es_rejected_execution_exception",
"reason" : "rejected execution of org.elasticsearch.transport.TransportService$4@c8998f4 on EsThreadPoolExecutor[bulk, queue capacity = 50, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@553aee29[Running, pool size = 4, active threads = 4, queued tasks = 50, completed tasks = 0]]"
}
}
},

我尝试增加队列大小-

threadpool.search.queue_size: 100000

但我仍然得到同样的错误。

最佳答案

您遇到的问题是因为批量操作队列已满。

一个node ES有很多线程池,generic,search,index,suggest,bulk等。在您的情况下,问题是由于批量操作队列已满。

尝试调整批量操作线程池的队列大小:

thread_pool.bulk.queue_size: 100

或者减少您一次发送的批量操作的数量。

有关详细信息,请参阅 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html

关于elasticsearch - 拒绝执行 org.elasticsearch.transport.TransportService 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37855803/

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