简介
GET _cat/thread_pool
指令可以展示 ES 自运行以来的线程池统计信息。有些信息是实时的(如active),有些信息是累计的(例如 rejected)。
相关文档:
- 官方文档 - cat thread pool API(包含各个统计信息的简介)
- 官方文档 - 各个线程池信息简介
示例
示例1:默认输出
代码语言:javascript复制GET _cat/thread_pool
输出:
代码语言:javascript复制data-6 analyze 0 0 0
data-6 ccr 0 0 0
data-6 fetch_shard_started 0 0 0
data-6 fetch_shard_store 0 0 0
data-6 flush 0 0 0
data-6 force_merge 0 0 0
data-6 generic 0 0 0
data-6 get 0 0 0
data-6 index 0 0 0
data-6 listener 0 0 0
data-6 management 1 0 0
data-6 ml_autodetect 0 0 0
data-6 ml_datafeed 0 0 0
data-6 ml_utility 0 0 0
data-6 refresh 0 0 0
data-6 rollup_indexing 0 0 0
data-6 search 0 0 0
data-6 search_throttled 0 0 0
data-6 security-token-key 0 0 0
data-6 snapshot 0 0 0
data-6 warmer 0 0 0
data-6 watcher 0 0 0
data-6 write 0 0 0
master-1 analyze 0 0 0
master-1 ccr 0 0 0
master-1 fetch_shard_started 0 0 0
master-1 fetch_shard_store 0 0 0
master-1 flush 0 0 0
master-1 force_merge 0 0 0
master-1 generic 0 0 0
master-1 get 0 0 0
master-1 index 0 0 0
master-1 listener 0 0 0
master-1 management 1 0 0
master-1 ml_autodetect 0 0 0
master-1 ml_datafeed 0 0 0
master-1 ml_utility 0 0 0
master-1 refresh 0 0 0
master-1 rollup_indexing 0 0 0
master-1 search 0 0 0
master-1 search_throttled 0 0 0
master-1 security-token-key 0 0 0
master-1 snapshot 0 0 0
master-1 warmer 0 0 0
master-1 watcher 0 0 0
master-1 write 0 0 0
data-7 analyze 0 0 0
data-7 ccr 0 0 0
data-7 fetch_shard_started 0 0 0
data-7 fetch_shard_store 0 0 0
data-7 flush 0 0 0
data-7 force_merge 0 0 0
data-7 generic 0 0 0
data-7 get 0 0 0
data-7 index 0 0 0
data-7 listener 0 0 0
data-7 management 1 0 0
data-7 ml_autodetect 0 0 0
data-7 ml_datafeed 0 0 0
data-7 ml_utility 0 0 0
data-7 refresh 0 0 0
data-7 rollup_indexing 0 0 0
data-7 search 0 0 0
data-7 search_throttled 0 0 0
data-7 security-token-key 0 0 0
data-7 snapshot 0 0 0
data-7 warmer 0 0 0
data-7 watcher 0 0 0
data-7 write 0 0 0
data-5 analyze 0 0 0
data-5 ccr 0 0 0
data-5 fetch_shard_started 0 0 0
data-5 fetch_shard_store 0 0 0
data-5 flush 0 0 0
data-5 force_merge 0 0 0
data-5 generic 0 0 0
data-5 get 0 0 0
data-5 index 0 0 0
data-5 listener 0 0 0
data-5 management 1 0 0
data-5 ml_autodetect 0 0 0
data-5 ml_datafeed 0 0 0
data-5 ml_utility 0 0 0
data-5 refresh 0 0 0
data-5 rollup_indexing 0 0 0
data-5 search 0 0 0
data-5 search_throttled 0 0 0
data-5 security-token-key 0 0 0
data-5 snapshot 0 0 0
data-5 warmer 0 0 0
data-5 watcher 0 0 0
data-5 write 0 0 0
master-4 analyze 0 0 0
master-4 ccr 0 0 0
master-4 fetch_shard_started 0 0 0
master-4 fetch_shard_store 0 0 0
master-4 flush 0 0 0
master-4 force_merge 0 0 0
master-4 generic 0 0 0
master-4 get 0 0 0
master-4 index 0 0 0
master-4 listener 0 0 0
master-4 management 1 0 0
master-4 ml_autodetect 0 0 0
master-4 ml_datafeed 0 0 0
master-4 ml_utility 0 0 0
master-4 refresh 0 0 0
master-4 rollup_indexing 0 0 0
master-4 search 0 0 0
master-4 search_throttled 0 0 0
master-4 security-token-key 0 0 0
master-4 snapshot 0 0 0
master-4 warmer 0 0 0
master-4 watcher 0 0 0
master-4 write 0 0 0
data-4 analyze 0 0 0
data-4 ccr 0 0 0
data-4 fetch_shard_started 0 0 0
data-4 fetch_shard_store 0 0 0
data-4 flush 0 0 0
data-4 force_merge 0 0 0
data-4 generic 0 0 0
data-4 get 0 0 0
data-4 index 0 0 0
data-4 listener 0 0 0
data-4 management 1 0 0
data-4 ml_autodetect 0 0 0
data-4 ml_datafeed 0 0 0
data-4 ml_utility 0 0 0
data-4 refresh 0 0 0
data-4 rollup_indexing 0 0 0
data-4 search 0 0 0
data-4 search_throttled 0 0 0
data-4 security-token-key 0 0 0
data-4 snapshot 0 0 0
data-4 warmer 0 0 0
data-4 watcher 0 0 0
data-4 write 0 0 0
data-3 analyze 0 0 0
data-3 ccr 0 0 0
data-3 fetch_shard_started 0 0 0
data-3 fetch_shard_store 0 0 0
data-3 flush 0 0 0
data-3 force_merge 0 0 0
data-3 generic 0 0 0
data-3 get 0 0 0
data-3 index 0 0 0
data-3 listener 0 0 0
data-3 management 1 0 0
data-3 ml_autodetect 0 0 0
data-3 ml_datafeed 0 0 0
data-3 ml_utility 0 0 0
data-3 refresh 0 0 0
data-3 rollup_indexing 0 0 0
data-3 search 0 0 0
data-3 search_throttled 0 0 0
data-3 security-token-key 0 0 0
data-3 snapshot 0 0 0
data-3 warmer 0 0 0
data-3 watcher 0 0 0
data-3 write 0 0 0
master-3 analyze 0 0 0
master-3 ccr 0 0 0
master-3 fetch_shard_started 0 0 0
master-3 fetch_shard_store 0 0 0
master-3 flush 0 0 0
master-3 force_merge 0 0 0
master-3 generic 0 0 0
master-3 get 0 0 0
master-3 index 0 0 0
master-3 listener 0 0 0
master-3 management 1 0 0
master-3 ml_autodetect 0 0 0
master-3 ml_datafeed 0 0 0
master-3 ml_utility 0 0 0
master-3 refresh 0 0 0
master-3 rollup_indexing 0 0 0
master-3 search 0 0 0
master-3 search_throttled 0 0 0
master-3 security-token-key 0 0 0
master-3 snapshot 0 0 0
master-3 warmer 0 0 0
master-3 watcher 0 0 0
master-3 write 0 0 0
每一列依次是 node_name
、name
、active
、queue
、rejected
。
示例2:显示表头
代码语言:javascript复制GET _cat/thread_pool?v
输出:
代码语言:javascript复制node_name name active queue rejected
master-1 analyze 0 0 0
master-1 ccr 0 0 0
master-1 fetch_shard_started 0 0 0
master-1 fetch_shard_store 0 0 0
master-1 flush 0 0 0
master-1 force_merge 0 0 0
master-1 generic 0 0 0
master-1 get 0 0 0
master-1 index 0 0 0
master-1 listener 0 0 0
master-1 management 1 0 0
master-1 ml_autodetect 0 0 0
master-1 ml_datafeed 0 0 0
master-1 ml_utility 0 0 0
master-1 refresh 0 0 0
master-1 rollup_indexing 0 0 0
master-1 search 0 0 0
master-1 search_throttled 0 0 0
master-1 security-token-key 0 0 0
master-1 snapshot 0 0 0
master-1 warmer 0 0 0
master-1 watcher 0 0 0
master-1 write 0 0 0
data-4 analyze 0 0 0
data-4 ccr 0 0 0
data-4 fetch_shard_started 0 0 0
data-4 fetch_shard_store 0 0 0
data-4 flush 0 0 0
data-4 force_merge 0 0 0
data-4 generic 0 0 0
data-4 get 0 0 0
data-4 index 0 0 0
data-4 listener 0 0 0
data-4 management 1 0 0
data-4 ml_autodetect 0 0 0
data-4 ml_datafeed 0 0 0
data-4 ml_utility 0 0 0
data-4 refresh 0 0 0
data-4 rollup_indexing 0 0 0
data-4 search 0 0 0
data-4 search_throttled 0 0 0
data-4 security-token-key 0 0 0
data-4 snapshot 0 0 0
data-4 warmer 0 0 0
data-4 watcher 0 0 0
data-4 write 0 0 0
data-5 analyze 0 0 0
data-5 ccr 0 0 0
data-5 fetch_shard_started 0 0 0
data-5 fetch_shard_store 0 0 0
data-5 flush 0 0 0
data-5 force_merge 0 0 0
data-5 generic 1 0 0
data-5 get 0 0 0
data-5 index 0 0 0
data-5 listener 0 0 0
data-5 management 2 0 0
data-5 ml_autodetect 0 0 0
data-5 ml_datafeed 0 0 0
data-5 ml_utility 0 0 0
data-5 refresh 0 0 0
data-5 rollup_indexing 0 0 0
data-5 search 0 0 0
data-5 search_throttled 0 0 0
data-5 security-token-key 0 0 0
data-5 snapshot 0 0 0
data-5 warmer 0 0 0
data-5 watcher 0 0 0
data-5 write 0 0 0
master-4 analyze 0 0 0
master-4 ccr 0 0 0
master-4 fetch_shard_started 0 0 0
master-4 fetch_shard_store 0 0 0
master-4 flush 0 0 0
master-4 force_merge 0 0 0
master-4 generic 0 0 0
master-4 get 0 0 0
master-4 index 0 0 0
master-4 listener 0 0 0
master-4 management 1 0 0
master-4 ml_autodetect 0 0 0
master-4 ml_datafeed 0 0 0
master-4 ml_utility 0 0 0
master-4 refresh 0 0 0
master-4 rollup_indexing 0 0 0
master-4 search 0 0 0
master-4 search_throttled 0 0 0
master-4 security-token-key 0 0 0
master-4 snapshot 0 0 0
master-4 warmer 0 0 0
master-4 watcher 0 0 0
master-4 write 0 0 0
master-3 analyze 0 0 0
master-3 ccr 0 0 0
master-3 fetch_shard_started 0 0 0
master-3 fetch_shard_store 0 0 0
master-3 flush 0 0 0
master-3 force_merge 0 0 0
master-3 generic 0 0 0
master-3 get 0 0 0
master-3 index 0 0 0
master-3 listener 0 0 0
master-3 management 1 0 0
master-3 ml_autodetect 0 0 0
master-3 ml_datafeed 0 0 0
master-3 ml_utility 0 0 0
master-3 refresh 0 0 0
master-3 rollup_indexing 0 0 0
master-3 search 0 0 0
master-3 search_throttled 0 0 0
master-3 security-token-key 0 0 0
master-3 snapshot 0 0 0
master-3 warmer 0 0 0
master-3 watcher 0 0 0
master-3 write 0 0 0
data-6 analyze 0 0 0
data-6 ccr 0 0 0
data-6 fetch_shard_started 0 0 0
data-6 fetch_shard_store 0 0 0
data-6 flush 0 0 0
data-6 force_merge 0 0 0
data-6 generic 0 0 0
data-6 get 0 0 0
data-6 index 0 0 0
data-6 listener 0 0 0
data-6 management 1 0 0
data-6 ml_autodetect 0 0 0
data-6 ml_datafeed 0 0 0
data-6 ml_utility 0 0 0
data-6 refresh 0 0 0
data-6 rollup_indexing 0 0 0
data-6 search 0 0 0
data-6 search_throttled 0 0 0
data-6 security-token-key 0 0 0
data-6 snapshot 0 0 0
data-6 warmer 0 0 0
data-6 watcher 0 0 0
data-6 write 0 0 0
data-7 analyze 0 0 0
data-7 ccr 0 0 0
data-7 fetch_shard_started 0 0 0
data-7 fetch_shard_store 0 0 0
data-7 flush 0 0 0
data-7 force_merge 0 0 0
data-7 generic 0 0 0
data-7 get 0 0 0
data-7 index 0 0 0
data-7 listener 0 0 0
data-7 management 1 0 0
data-7 ml_autodetect 0 0 0
data-7 ml_datafeed 0 0 0
data-7 ml_utility 0 0 0
data-7 refresh 0 0 0
data-7 rollup_indexing 0 0 0
data-7 search 0 0 0
data-7 search_throttled 0 0 0
data-7 security-token-key 0 0 0
data-7 snapshot 0 0 0
data-7 warmer 0 0 0
data-7 watcher 0 0 0
data-7 write 0 0 0
data-3 analyze 0 0 0
data-3 ccr 0 0 0
data-3 fetch_shard_started 0 0 0
data-3 fetch_shard_store 0 0 0
data-3 flush 0 0 0
data-3 force_merge 0 0 0
data-3 generic 0 0 0
data-3 get 0 0 0
data-3 index 0 0 0
data-3 listener 0 0 0
data-3 management 1 0 0
data-3 ml_autodetect 0 0 0
data-3 ml_datafeed 0 0 0
data-3 ml_utility 0 0 0
data-3 refresh 0 0 0
data-3 rollup_indexing 0 0 0
data-3 search 0 0 0
data-3 search_throttled 0 0 0
data-3 security-token-key 0 0 0
data-3 snapshot 0 0 0
data-3 warmer 0 0 0
data-3 watcher 0 0 0
data-3 write 0 0 0
示例3:通过 h 指定展示的列
代码语言:javascript复制GET _cat/thread_pool?v&h=name,core,host,port
输出:
代码语言:javascript复制name host port
analyze esmaster3.ops.prod.idc1 9300
ccr esmaster3.ops.prod.idc1 9300
fetch_shard_started esmaster3.ops.prod.idc1 9300
fetch_shard_store esmaster3.ops.prod.idc1 9300
flush esmaster3.ops.prod.idc1 9300
force_merge esmaster3.ops.prod.idc1 9300
generic esmaster3.ops.prod.idc1 9300
get esmaster3.ops.prod.idc1 9300
index esmaster3.ops.prod.idc1 9300
listener esmaster3.ops.prod.idc1 9300
management esmaster3.ops.prod.idc1 9300
ml_autodetect esmaster3.ops.prod.idc1 9300
ml_datafeed esmaster3.ops.prod.idc1 9300
ml_utility esmaster3.ops.prod.idc1 9300
refresh esmaster3.ops.prod.idc1 9300
rollup_indexing esmaster3.ops.prod.idc1 9300
search esmaster3.ops.prod.idc1 9300
search_throttled esmaster3.ops.prod.idc1 9300
security-token-key esmaster3.ops.prod.idc1 9300
snapshot esmaster3.ops.prod.idc1 9300
warmer esmaster3.ops.prod.idc1 9300
watcher esmaster3.ops.prod.idc1 9300
write esmaster3.ops.prod.idc1 9300
analyze esdata6.ops.prod.idc1 9300
ccr esdata6.ops.prod.idc1 9300
fetch_shard_started esdata6.ops.prod.idc1 9300
fetch_shard_store esdata6.ops.prod.idc1 9300
flush esdata6.ops.prod.idc1 9300
force_merge esdata6.ops.prod.idc1 9300
generic esdata6.ops.prod.idc1 9300
get esdata6.ops.prod.idc1 9300
index esdata6.ops.prod.idc1 9300
listener esdata6.ops.prod.idc1 9300
management esdata6.ops.prod.idc1 9300
ml_autodetect esdata6.ops.prod.idc1 9300
ml_datafeed esdata6.ops.prod.idc1 9300
ml_utility esdata6.ops.prod.idc1 9300
refresh esdata6.ops.prod.idc1 9300
rollup_indexing esdata6.ops.prod.idc1 9300
search esdata6.ops.prod.idc1 9300
search_throttled esdata6.ops.prod.idc1 9300
security-token-key esdata6.ops.prod.idc1 9300
snapshot esdata6.ops.prod.idc1 9300
warmer esdata6.ops.prod.idc1 9300
watcher esdata6.ops.prod.idc1 9300
write esdata6.ops.prod.idc1 9300
analyze esdata7.ops.prod.idc1 9300
ccr esdata7.ops.prod.idc1 9300
fetch_shard_started esdata7.ops.prod.idc1 9300
fetch_shard_store esdata7.ops.prod.idc1 9300
flush esdata7.ops.prod.idc1 9300
force_merge esdata7.ops.prod.idc1 9300
generic esdata7.ops.prod.idc1 9300
get esdata7.ops.prod.idc1 9300
index esdata7.ops.prod.idc1 9300
listener esdata7.ops.prod.idc1 9300
management esdata7.ops.prod.idc1 9300
ml_autodetect esdata7.ops.prod.idc1 9300
ml_datafeed esdata7.ops.prod.idc1 9300
ml_utility esdata7.ops.prod.idc1 9300
refresh esdata7.ops.prod.idc1 9300
rollup_indexing esdata7.ops.prod.idc1 9300
search esdata7.ops.prod.idc1 9300
search_throttled esdata7.ops.prod.idc1 9300
security-token-key esdata7.ops.prod.idc1 9300
snapshot esdata7.ops.prod.idc1 9300
warmer esdata7.ops.prod.idc1 9300
watcher esdata7.ops.prod.idc1 9300
write esdata7.ops.prod.idc1 9300
analyze esmaster1.ops.prod.idc1 9300
ccr esmaster1.ops.prod.idc1 9300
fetch_shard_started esmaster1.ops.prod.idc1 9300
fetch_shard_store esmaster1.ops.prod.idc1 9300
flush esmaster1.ops.prod.idc1 9300
force_merge esmaster1.ops.prod.idc1 9300
generic esmaster1.ops.prod.idc1 9300
get esmaster1.ops.prod.idc1 9300
index esmaster1.ops.prod.idc1 9300
listener esmaster1.ops.prod.idc1 9300
management esmaster1.ops.prod.idc1 9300
ml_autodetect esmaster1.ops.prod.idc1 9300
ml_datafeed esmaster1.ops.prod.idc1 9300
ml_utility esmaster1.ops.prod.idc1 9300
refresh esmaster1.ops.prod.idc1 9300
rollup_indexing esmaster1.ops.prod.idc1 9300
search esmaster1.ops.prod.idc1 9300
search_throttled esmaster1.ops.prod.idc1 9300
security-token-key esmaster1.ops.prod.idc1 9300
snapshot esmaster1.ops.prod.idc1 9300
warmer esmaster1.ops.prod.idc1 9300
watcher esmaster1.ops.prod.idc1 9300
write esmaster1.ops.prod.idc1 9300
analyze esdata5.ops.prod.idc1 9300
ccr esdata5.ops.prod.idc1 9300
fetch_shard_started esdata5.ops.prod.idc1 9300
fetch_shard_store esdata5.ops.prod.idc1 9300
flush esdata5.ops.prod.idc1 9300
force_merge esdata5.ops.prod.idc1 9300
generic esdata5.ops.prod.idc1 9300
get esdata5.ops.prod.idc1 9300
index esdata5.ops.prod.idc1 9300
listener esdata5.ops.prod.idc1 9300
management esdata5.ops.prod.idc1 9300
ml_autodetect esdata5.ops.prod.idc1 9300
ml_datafeed esdata5.ops.prod.idc1 9300
ml_utility esdata5.ops.prod.idc1 9300
refresh esdata5.ops.prod.idc1 9300
rollup_indexing esdata5.ops.prod.idc1 9300
search esdata5.ops.prod.idc1 9300
search_throttled esdata5.ops.prod.idc1 9300
security-token-key esdata5.ops.prod.idc1 9300
snapshot esdata5.ops.prod.idc1 9300
warmer esdata5.ops.prod.idc1 9300
watcher esdata5.ops.prod.idc1 9300
write esdata5.ops.prod.idc1 9300
analyze esmaster4.ops.prod.idc1 9300
ccr esmaster4.ops.prod.idc1 9300
fetch_shard_started esmaster4.ops.prod.idc1 9300
fetch_shard_store esmaster4.ops.prod.idc1 9300
flush esmaster4.ops.prod.idc1 9300
force_merge esmaster4.ops.prod.idc1 9300
generic esmaster4.ops.prod.idc1 9300
get esmaster4.ops.prod.idc1 9300
index esmaster4.ops.prod.idc1 9300
listener esmaster4.ops.prod.idc1 9300
management esmaster4.ops.prod.idc1 9300
ml_autodetect esmaster4.ops.prod.idc1 9300
ml_datafeed esmaster4.ops.prod.idc1 9300
ml_utility esmaster4.ops.prod.idc1 9300
refresh esmaster4.ops.prod.idc1 9300
rollup_indexing esmaster4.ops.prod.idc1 9300
search esmaster4.ops.prod.idc1 9300
search_throttled esmaster4.ops.prod.idc1 9300
security-token-key esmaster4.ops.prod.idc1 9300
snapshot esmaster4.ops.prod.idc1 9300
warmer esmaster4.ops.prod.idc1 9300
watcher esmaster4.ops.prod.idc1 9300
write esmaster4.ops.prod.idc1 9300
analyze esdata4.ops.prod.idc1 9300
ccr esdata4.ops.prod.idc1 9300
fetch_shard_started esdata4.ops.prod.idc1 9300
fetch_shard_store esdata4.ops.prod.idc1 9300
flush esdata4.ops.prod.idc1 9300
force_merge esdata4.ops.prod.idc1 9300
generic esdata4.ops.prod.idc1 9300
get esdata4.ops.prod.idc1 9300
index esdata4.ops.prod.idc1 9300
listener esdata4.ops.prod.idc1 9300
management esdata4.ops.prod.idc1 9300
ml_autodetect esdata4.ops.prod.idc1 9300
ml_datafeed esdata4.ops.prod.idc1 9300
ml_utility esdata4.ops.prod.idc1 9300
refresh esdata4.ops.prod.idc1 9300
rollup_indexing esdata4.ops.prod.idc1 9300
search esdata4.ops.prod.idc1 9300
search_throttled esdata4.ops.prod.idc1 9300
security-token-key esdata4.ops.prod.idc1 9300
snapshot esdata4.ops.prod.idc1 9300
warmer esdata4.ops.prod.idc1 9300
watcher esdata4.ops.prod.idc1 9300
write esdata4.ops.prod.idc1 9300
analyze esdata3.ops.prod.idc1 9300
ccr esdata3.ops.prod.idc1 9300
fetch_shard_started esdata3.ops.prod.idc1 9300
fetch_shard_store esdata3.ops.prod.idc1 9300
flush esdata3.ops.prod.idc1 9300
force_merge esdata3.ops.prod.idc1 9300
generic esdata3.ops.prod.idc1 9300
get esdata3.ops.prod.idc1 9300
index esdata3.ops.prod.idc1 9300
listener esdata3.ops.prod.idc1 9300
management esdata3.ops.prod.idc1 9300
ml_autodetect esdata3.ops.prod.idc1 9300
ml_datafeed esdata3.ops.prod.idc1 9300
ml_utility esdata3.ops.prod.idc1 9300
refresh esdata3.ops.prod.idc1 9300
rollup_indexing esdata3.ops.prod.idc1 9300
search esdata3.ops.prod.idc1 9300
search_throttled esdata3.ops.prod.idc1 9300
security-token-key esdata3.ops.prod.idc1 9300
snapshot esdata3.ops.prod.idc1 9300
warmer esdata3.ops.prod.idc1 9300
watcher esdata3.ops.prod.idc1 9300
write esdata3.ops.prod.idc1 9300
示例4:展示特定线程池的统计信息
例如 analyze 线程池
代码语言:javascript复制GET _cat/thread_pool/analyze?v&h=name,core,host,port
输出:
代码语言:javascript复制name core host port
analyze 127.0.0.1 9300