Threadpool/Queue 大小限制未解决
Threadpool/Queue size limitation unsolved
我正在使用 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@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@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 正在执行的其他操作。因此,如果您还编制索引,请以较低的速度进行,因为它会影响搜索操作。
我正在使用 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@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@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 正在执行的其他操作。因此,如果您还编制索引,请以较低的速度进行,因为它会影响搜索操作。