Elasticsearch5.x 引擎健康情况

查看引擎健康情况

[root@w]# curl -XGET "http://localhost:9200/_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
1562237054 18:44:14  log yellow          6         3  12722 7021    0    6     1314           634               5.1h                 90.6%

如果出现这条信息,说明你的elastic search已经正常运行了,恭喜你

标题含义
epoch unix 的时间
timestamp 时间戳
cluster 集群
status 健康状态:红为异常, 绿黄为健康
node.total 节点的总数
node.data 节点的数据
shards 分片
pri active_primary_shards 已激活的主要分片
relo 回收的切片
init 已经初始的切片数量
unassign 未分配切片数量
pending_tasks 被搁置的任务数量
max_task_wait_time 任务等待的最大时间
active_shards_percents 激活分片的百分比

注意 status黄色和绿色的区别:

  • 红色:所有的分片没有全部激活
  • 黄色:主要分片全部启动,但是备份的分片没有启动
  • 绿色:主要分片和其备份都已经启动
原文地址:https://www.cnblogs.com/xzlive/p/11134261.html