参考:https://blog.youkuaiyun.com/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 }'

本文介绍如何通过调整Elasticsearch的副本数量设置,解决Logstash导入数据后Cerebro显示集群健康状态为黄色的问题。通过使用curl命令,可以将副本数设置为0,从而快速改善集群的健康状况。
最低0.47元/天 解锁文章
330

被折叠的 条评论
为什么被折叠?



