练习
1.查看节点
GET /_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
172.26.252.173 64 24 0 0.02 0.04 0.05 mdi - node-1
172.26.252.172 15 24 0 0.00 0.03 0.05 mdi * node-2
172.26.252.171 20 24 0 0.21 0.06 0.06 mdi - node-3
2.查看健康状况
GET /_cat/health?v
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1603437872 15:24:32 mycluster green 3 3 20 10 0 0 0 0 - 100.0%
3.查看索引
GET /_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open movie_chn D-AGzcdgTiqr0GONjJwnPw 5 1 3 0 26.6