ElasticSearch之cat pending tasks API

命令样例如下:

curl -X GET "https://localhost:9200/_cat/pending_tasks?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

insertOrder timeInQueue priority source
       1685       855ms HIGH     update-mapping [foo][t]
       1686       843ms HIGH     update-mapping [foo][t]
       1693       753ms HIGH     refresh-mapping [foo][[t]]

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/pending_tasks?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

insertOrder | o | task insertion order
timeInQueue | t | how long task has been in queue
priority    | p | task priority
source      | s | task source

相关资料

posted @ 2023-11-29 00:04  jackieathome  阅读(56)  评论(0编辑  收藏  举报