ElasticSearch之cat allocation API
查看各节点上各个shard
的硬件使用情况,命令样例如下:
curl -X GET "https://localhost:9200/_cat/allocation?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果如下:
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
1 12.6kb 57.1gb 34.5gb 91.6gb 62 127.0.0.1 127.0.0.1 jackie-ubuntu
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/allocation?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
shards | s | number of shards on node
disk.indices | di,diskIndices | disk used by ES indices
disk.used | du,diskUsed | disk used (total, not just ES)
disk.avail | da,diskAvail | disk available
disk.total | dt,diskTotal | total capacity of all volumes
disk.percent | dp,diskPercent | percent disk used
host | h | host of node
ip | | ip of node
node | n | name of node
node.role | r,role,nodeRole | node roles
相关资料
本文来自博客园,作者:jackieathome,转载请注明原文链接:https://www.cnblogs.com/jackieathome/p/17850685.html