如何查看当前队列中的任务数量?

时间:2017-03-29 02:35:06

标签: elasticsearch elasticsearch-5

当并发索引文档操作时,我得到索引被拒绝的异常。

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

enter image description here

问题1 :队列容量为200,为什么队列中的任务是320(超过200)?

问题2 :如何查看当前队列中的任务数量?

0 个答案:

没有答案