作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用ES在Windows OS中进行一些数据索引。但是,我总是遇到以下错误。看来这可能是队列大小或线程池大小问题。但是,我找不到任何文档来说明如何更改Windows设置来解决该问题。
[2016-07-20 11:11:56,343][DEBUG][action.search ] [Adaptoid] [cpu-2015.09.23][2], node[1Qp4zwR_Q5GLX-VChDOc2Q], [P], v[42], s[STARTED], a[id=KznRm9A5S0OhTMZMoED0qA]: Failed to execute [org.elasticsearch.action.search.SearchRequest@444b07] lastShard [true]
RemoteTransportException[[Adaptoid][172.16.1.238:9300][indices:data/read/search[phase/query]]]; nested: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@cd47e on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@9c72f5[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 1226]]];
Caused by: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@cd47e on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@9c72f5[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 1226]]]
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:50)
最佳答案
Elasticsearch没有问题,但您的索引编制过程却没有问题。通过引发该异常,ES告诉您您向ES 发送了太多搜索请求,因此无法跟上。
如果同时执行索引操作,则索引过程中的压力(内存,CPU,合并段)可能会影响ES正在执行的其他操作。因此,如果您也建立索引,请以较低的速度进行索引,因为这会影响搜索操作。
关于elasticsearch - 线程池/队列大小限制未解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38471883/
我是一名优秀的程序员,十分优秀!