查看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
}'