Elastic Search is always status red when I restart with no data in index

You have a single node, and number_of_replicas = 2. That will not work. It
means, "create an index, but each shard should exist three times. And, If
recovery is required, wait for a quorum of shards (3+1)/2 = 2 for recovery
to begin, before setting the state to yellow".

Why is it wrong? Well, you have one node, and therefore, at maximum a
quorum 1 of shards can be present. Creating replica on a single node is
quite useless. Worse, increasing replica level from the default of 1 to 2
tells a single node ES cluster not to recover at all, but instead wait for
more nodes that can fulfill the quorum of shards.

Use

gateway.local.initial_shards: 1

in the config to overwrite the default value of "quorum", and the gateway
will recover the index.

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGOwxyJ6PgjFkq9%3Dz47o%2B_kieayK-L09Ur9T9FGVrHeTw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.