ES集群health為yellow解決辦法


原創轉載請注明出處:https://www.cnblogs.com/agilestyle/p/11766147.html

 

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM