ES集羣health爲yellow解決辦法

參考:https://blog.csdn.net/myhes/article/details/106076544

Logstash導入數據後,Cerebro顯示集羣health的狀態爲yellow

 

解決辦法

1 curl http://localhost:9200/_cat/indices\?v

 

1 curl http://localhost:9200/_cluster/health?pretty=true

 

1 curl -H "Content-Type: application/json" -XPUT 'http://localhost:9200/_settings' -d '
2 {
3     "index" : {
4         "number_of_replicas" : 0
5     }
6 }'

 

1 curl http://localhost:9200/_cluster/health?pretty=true

 

再次查看Cerebro,health的狀態爲green

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章