EsRejectedExecutionException in ES


(Kennedy Kan) #1

My ES has been running fine. However, after I have managed to run through a visualization chart which gone through a large amount of data, it gives me the following error.

EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@9474a on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1aa8ac1[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 7289]]]

Does that mean I have too many data for loading which the ES could not hold up to this amount?


(Tyler Smalley) #2

It's not necessarily an indication that you have too much data, but that you are overwhelming the Elasticsearch instance with too many requests. A few options are to increase the size of the queue or threadpool, or add more nodes to the cluster.


(Kennedy Kan) #4

Hi @tsmalley,

Thanks. But I am not sure how I should increase the queue size or thread pool.

Can I just directly add to elasticsearch.yml with this?

threadpool.bulk.type: fixed
threadpool.bulk.size: 8
threadpool.bulk.queue_size: 10000


(system) #5