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