当前位置: 首页 > 未分类>阅读正文

elasticSearch查看集群健康状态

2022.7.14 朱丰华 1255 次 留下评论 327字

使用 /cat/health 查看集群健康状态

curl -k -u uname:upass "https://127.0.0.1:9200/_cat/health?v&pretty"

例如:

epoch      timestamp cluster       status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1657763572 01:52:52  elasticsearch yellow          1         1     22  22    0    0        4             0                  -                 84.6%

这里的 active_shards_percent 不为 100%,说明不是非常健康,而且提示为 yellow,健康状态为 green。

本篇完,还有疑问?留下评论吧

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注