[2019-03-01 10:09:58][ERROR]rspItemError: {"reason":"rejected execution of org.elasticsearch.transport.TransportService$7@5436e129 on EsThreadPoolExecutor[bulk, queue capacity = 1024, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6bd77359[Running, pool size = 12, active threads = 12, queued tasks = 2390, completed tasks = 20018208656]]","type":"es_rejected_execution_exception"}
[o.e.a.s.TransportSearchAction] [1590724712002574732] [31691361796] Failed to execute fetch phaseorg.elasticsearch.transport.RemoteTransportException: [1585899116000088832][10.0.134.65:22624][indices:data/read/search[phase/fetch/id]]Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@63779fac on QueueResizingEsThreadPoolExecutor[name = 1585899116000088832/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 1s, task execution EWMA = 2.8ms, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@350da023[Running, pool size = 49, active threads = 49, queued tasks = 1000, completed tasks = 57087199564]]
GET _cat/thread_pool/bulk?s=queue:desc&vGET _cat/thread_pool/search?s=queue:desc&v

GET _cat/shards?index=index_name&v

GET /_cat/shards?index={index_name}&s=node,store:desc

number_of_shards parameter in the index template (after the template is created, it will take effect when you create new indexes, and previous indexes will not be adjusted).routing.allocation.total_shards_per_node parameter. For more information, please see Total Shards Per Node.total_shards_per_node so as to prevent any machine failure from rendering allocation of shards impossible (for example, if there are 10 machines and an index has 20 shards, total_shards_per_node should be set to above 2, such as 3).PUT {index_name}/_settings{"settings": {"index": {"routing": {"allocation": {"total_shards_per_node": "3"}}}}}
PUT _template/{template_name}{"order": 0,"template": "{index_prefix@}*", // Prefix of the index to be adjusted"settings": {"index": {"number_of_shards": "30", // Specify the number of shards assigned to the index based on a shard size of about 30 GB"routing.allocation.total_shards_per_node":3 // Specify the maximum number of shards that a node can accommodate}},"aliases": {}}
Feedback