查看各節點上各個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 node1 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
相關資料
- cat allocation API