Bit help against yellow cluster

(Vikash Singh) #1

Every time I check the health of an index it show yellow. There are 5 primaries & 1 replicas


I've also executed curl 10.1.109.5:9200/_cat/indices?v & it's output was 5p 1r. Along with this also executed curl 10.1.109.5:9200/_cat/shards?v and it's output looks like
logstash_apchelogs-2019.05.15 4 p STARTED 314922 183.9mb 10.11.109.5 d4s8Zyj
logstash_apchelogs-2019.05.15 4 r UNASSIGNED
logstash_apchelogs-2019.05.15 2 p STARTED 313971 181.5mb 10.11.109.5 d4s8Zyj
logstash_apchelogs-2019.05.15 2 r UNASSIGNED
logstash_apchelogs-2019.05.15 3 p STARTED 314587 182mb 10.11.109.5 d4s8Zyj
logstash_apchelogs-2019.05.15 3 r UNASSIGNED
logstash_apchelogs-2019.05.15 1 p STARTED 314388 183mb 10.11.109.5 d4s8Zyj
logstash_apchelogs-2019.05.15 1 r UNASSIGNED
logstash_apchelogs-2019.05.15 0 p STARTED 315084 182.6mb 10.11.109.5 d4s8Zyj
logstash_apchelogs-2019.05.15 0 r UNASSIGNED
Now how can I change it's ealth to Green??

(David Pilato) #2

Most likely you have only one node in your cluster.

You can:

  • start other nodes so replicas will be allocated
  • change the number of replicas to 0
  • stay in this situation because in a test context, that can be perfectly fine