How to fix cluster health yellow with Elastic Search

前端 未结 3 1453
自闭症患者
自闭症患者 2021-02-07 03:26

I have setup on server, with MongoDb and ElasticSearch. Using https://github.com/richardwilly98/elasticsearch-river-mongodb I have connected ElasticSearch and MongoDb together.<

3条回答
  •  你的背包
    2021-02-07 04:01

    Looks like you don't have a node for replica shards to go to. You can lower your replica count to 0 or add a second node to your cluster so that primary and replica shards can be safely placed on different nodes.

    The default configuration in elasticsearch.yml is probably this:

    index.number_of_shards: 5  
    index.number_of_replicas: 1
    

    The idea being that if your node crashes, another node in your cluster will have a copy of the shard. Since you only have one node, the cluster has no idea where to put the replicas and thus is in a yellow state.

提交回复
热议问题