How to fix cluster health yellow with Elastic Search

前端 未结 3 1456
自闭症患者
自闭症患者 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:04

    I am posting an answer since I tumbled upon this question while looking for solution of similar issue.

    I have a dev environment where I need only 1 Elasticsearch node so there is no need for replicas for all my indices.

    To solve cluster health: yellow issue, I just made index.number_of_replicas: 1

    PUT /_settings
    {
      "index" : {
            "number_of_replicas" : 0
        }
    }
    

提交回复
热议问题