Hello team,
After restarting the Elasticsearch service several time, and increasing the thread_pool.bulk.queue_size, when I try to interact with Elasticsearch with the following query :
q = {
"query": {
"match_all": {}
}
}
q = es.search(index='my_index', body=q)
I get the following message :
{'took': 38,
'timed_out': False,
'num_reduce_phases': 3,
'_shards': {'total': 1396,
'successful': 1395,
'failed': 1,
'failures': [{'shard': 1,
'index': 'SOME_OTHER_INDEX',
'node': 'My_node',
'reason': {'type': 'es_rejected_execution_exception',
'reason': 'rejected execution of org.elasticsearch.transport.TransportService$7@37f5c738 on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@5c51cea6[Running, pool size = 13, active threads = 13, queued tasks = 996, completed tasks = 4347]]'}}]},
'hits': {'total': 0, 'max_score': None, 'hits': []}}
And when I relaunch my query, I get a failure on another different index. I tried to check the cluster's health but everything seems normal as you can see :
curl localhost:9201/_cluster/health?pretty
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 472 100 472 0 0 10260 0 --:--:-- --:--:-- --:--:-- 10260{
"cluster_name" : "elasticsearch",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1396,
"active_shards" : 1396,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
Any thouyghts on why this is happening?
Best.