Elasticsearchのcat thread pool

Elasticsearchのcat thread poolについて記す。

公式ドキュメント cat thread pool を参考にした。

www.elastic.co

検証環境: Elasticsearch 6.0.0-rc1

cat thread poolはノードごとのスレッドプールの統計を表示する。デフォルトでは、すべてのスレッドプールに対してactive, queue , rejectedの統計が返される。

bash-3.2$ curl -XGET 'localhost:9200/_cat/thread_pool?pretty'
Xj840__ bulk                0 0 0
Xj840__ fetch_shard_started 0 0 0
Xj840__ fetch_shard_store   0 0 0
Xj840__ flush               0 0 0
Xj840__ force_merge         0 0 0
Xj840__ generic             0 0 0
Xj840__ get                 0 0 0
Xj840__ index               0 0 0
Xj840__ listener            0 0 0
Xj840__ management          1 0 0
Xj840__ refresh             0 0 0
Xj840__ search              0 0 0
Xj840__ snapshot            0 0 0
Xj840__ warmer              0 0 0
bash-3.2$ curl -XGET 'localhost:9200/_cat/thread_pool?help&pretty'
node_name         | nn  | node name                                 
node_id           | id  | persistent node id                        
ephemeral_node_id | eid | ephemeral node id                         
pid               | p   | process id                                
host              | h   | host name                                 
ip                | i   | ip address                                
port              | po  | bound transport port                      
name              | n   | thread pool name                          
type              | t   | thread pool type                          
active            | a   | number of active threads                  
size              | s   | number of threads                         
queue             | q   | number of tasks currently in queue        
queue_size        | qs  | maximum number of tasks permitted in queue
rejected          | r   | number of rejected tasks                  
largest           | l   | highest number of seen active threads     
completed         | c   | number of completed tasks                 
min               | mi  | minimum number of threads                 
max               | ma  | maximum number of threads                 
keep_alive        | ka  | thread keep alive time  
bash-3.2$ curl -XGET 'localhost:9200/_cat/thread_pool/generic?v&h=id,name,active,rejected,completed&pretty'
id                     name    active rejected completed
Xj840__ASbS0BbEVHYQBFQ generic      0        0      1696