| 接口 | GET /_cluster/health |
|---|---|
| 关键字段 | status、number_of_nodes、active_shards、relocating_shards、unassigned_shards、number_of_pending_tasks |
| 常用参数 | wait_for_status=yellow、wait_for_no_relocating_shards、timeout |
示例
示例
GET /_cluster/health?pretty
GET /_cluster/health?wait_for_status=yellow&timeout=30s
GET /_cluster/health/logs-*?level=indicesred 时先看 unassigned_shards 与后续的 allocation explain,判断是节点掉线、磁盘水位还是分片损坏。