码迷,mamicode.com
首页 > 其他好文 > 详细

Elasticsearch cluster health: yellow unassigned shards

时间:2015-07-16 18:18:26      阅读:398      评论:0      收藏:0      [点我收藏+]

标签:

查看ES各个分片的状态

$ curl -XGET http://127.0.0.1:9200/_cluster/health?pretty
{
  "cluster_name" : "elasticsearch_brew",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 350,
  "active_shards" : 350,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 3,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

Elasticsearch单台,增加kibana监控,集群状态总是黄色,索引kibana副本有问题,我ES里设置了一个

直接执行下列命令,删除多余副本

curl -XPUT "http://localhost:9200/_settings" -d‘
{
  "number_of_replicas" : 0
}‘

 

Elasticsearch cluster health: yellow unassigned shards

标签:

原文地址:http://www.cnblogs.com/sunxucool/p/4651496.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!