Elasticsearch cluster health: yellow unassigned shards

查看ES各個分片的狀態node

$ 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

直接執行下列命令,刪除多餘副本elasticsearch

curl -XPUT "http://localhost:9200/_settings" -d'
{
  "number_of_replicas" : 0
}'
相關文章
相關標籤/搜索