命令样例如下:
curl -X GET "https://localhost:9200/_cat/health?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1700926585 15:36:25 elasticsearch green 1 1 1 1 0 0 0 0 - 100.0%
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/health?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
epoch | t,time | seconds since 1970-01-01 00:00:00
timestamp | ts,hms,hhmmss | time in HH:MM:SS
cluster | cl | cluster name
status | st | health status
node.total | nt,nodeTotal | total number of nodes
node.data | nd,nodeData | number of nodes that can store data
shards | t,sh,shards.total,shardsTotal | total number of shards
pri | p,shards.primary,shardsPrimary | number of primary shards
relo | r,shards.relocating,shardsRelocating | number of relocating nodes
init | i,shards.initializing,shardsInitializing | number of initializing nodes
unassign | u,shards.unassigned,shardsUnassigned | number of unassigned shards
pending_tasks | pt,pendingTasks | number of pending tasks
max_task_wait_time | mtwt,maxTaskWaitTime | wait time of longest task pending
active_shards_percent | asp,activeShardsPercent | active number of shards in percent
相关资料
- ElasticSearch health API catelasticsearch health api cat elasticsearch segments api cat elasticsearch plugins api cat elasticsearch repositories api cat elasticsearch datafeeds api cat elasticsearch allocation api cat elasticsearch indices api cat elasticsearch templates api cat elasticsearch recovery api cat elasticsearch transforms api cat