命令 | 响应 | 命令描述 | 字段描述 |
---|---|---|---|
GET /_cluster/health | { “cluster_name” : “elasticsearch”, “status” : “yellow”, “timed_out” : false, “number_of_nodes” : 1, “number_of_data_nodes” : 1, “active_primary_shards” : 7, “active_shards” : 7, “relocating_shards” : 0, “initializing_shards” : 0, “unassigned_shards” : 1, “delayed_unassigned_shards” : 0, “number_of_pending_tasks” : 0, “number_of_in_flight_fetch” : 0, “task_max_waiting_in_queue_millis” : 0, “active_shards_percent_as_number” : 87.5 } |
显示 Elasticsearch 的集群监控信息 | status: 集群健康状况 grren 正常 / yellow 主分片正常 / red 有主分片未正常运行 |