es集群健康值变为黄色解决办法

查看集群状态各个指标
curl http://localhost:9200/_cluster/health?pretty

“cluster_name” : “my-application”,  #集群名

“status” : “green”,  #集群健康状态,正常的话是“green”,缺少副本分片为“yellow”,缺少主分片为“red”

“timed_out” : false,

“number_of_nodes” : 2,  #集群节点数

“number_of_data_nodes” : 2,        #数据节点数

“active_primary_shards” : 138,      #主分片数

“active_shards” : 274,          #可用的分片数

“relocating_shards” : 0,          #正在迁移的分片数

“initializing_shards” : 0,        #正在初始化的分片数

“unassigned_shards” : 0,          #未分配的分片,但在集群中存在

“delayed_unassigned_shards” : 0,      #延时待分配到具体节点上的分片数

“number_of_pending_tasks” : 0,      #待处理的任务数,指主节点创建索引并分配shards等任务

“number_of_in_flight_fetch” : 0,

“task_max_waiting_in_queue_millis” : 0,

“active_shards_percent_as_number” : 100.0  #可用分片数占总分片的比例
出现黄色说明副本分片出现问题本人解决办法
curl -H “Content-Type: application/json” -XPUT “http://192.168.6.189:9200/_settings” -d’ {“number_of_replicas”:0}’

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值