Starting one node in a three node cluster with 2 replicas = RED

Hi,

I initially had a 1-node cluster that I expanded to 3. I updated replicas to 2 for all indexes so there is now a fully redundant set of shard on each node. If I shutdown two nodes I am still yellow with 33.3333% active shards, which is fine.

But, if I close the last node and restart it it comes up RED. The only way to go to yellow is to fire up another node. That brings the first node to yellow again and I can close the secoend node again.

How can I bring my first node to come up yellow without bringing another node up temporarily?

I'd like to keep the extra nodes shutdown normally, but ready to step in in case search load increases. So I want to make the cluster work with 1, 2 or 3 nodes. Yellow is fine for 1-2 nodes.

The first node is node.master:true, the other two are node:master: false.
I also tried:
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 1

But no change.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.