ES集群health为yellow解决办法

时间:2023-03-09 14:46:36
ES集群health为yellow解决办法

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11766147.html

Logstash导入数据后,Cerebro显示集群health的状态为yellow

ES集群health为yellow解决办法

解决办法

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

ES集群health为yellow解决办法

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

ES集群health为yellow解决办法

 curl -H "Content-Type: application/json" -XPUT 'http://localhost:9200/_settings' -d '
{
"index" : {
"number_of_replicas" :
}
}'

ES集群health为yellow解决办法

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

ES集群health为yellow解决办法

再次查看Cerebro,health的状态为green

ES集群health为yellow解决办法