Repurposing master node as data node

I have a 3 node es cluster with all nodes having all roles. I want to convert these nodes to dedicated master nodes and add extra dedicated data nodes. For this the best approach is to evacuate all the shards from the node using allocation filtering and then setting false. Unfortunately, in my cluster there is an index with auto_expand_replicas set to 0-all and as a result one shard of that index is remaining in the node even after evacuation.

As an alternative I was considering Elasticsearch-node repurpose, but according to documentation(elasticsearch-node | Elasticsearch Guide [7.15] | Elastic) this operation is unsafe.

Is there a way out of this situation?

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