当并发索引文档操作时,我得到索引被拒绝的异常。
rejected execution of org.elasticsearch.transport.TcpTransport$RequestHandler@6d1cb827
on EsThreadPoolExecutor
[
index,
queue capacity = 200,
org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@5d6lae0c
[
Running,
pool size = 32,
active threads = 32,
queued tasks = 312,
completed tasks = 32541513
]
]
我尝试访问网址,但索引队列字段远离 0 。
/_cat/thread_pool?v&h=id,type,name,size,largest,active,queue_size,queue
问题1 :队列容量为200,为什么队列中的任务是320(超过200)?
问题2 :如何查看当前队列中的任务数量?