# How to move from 2 node cluster to single node?

**URL:** <https://discuss.elastic.co/t/how-to-move-from-2-node-cluster-to-single-node/356861>\
**Category:** Elasticsearch\
**Created:** [April 5, 2024, 11:45am UTC](https://discuss.elastic.co/t/how-to-move-from-2-node-cluster-to-single-node/356861 "2024-04-05T11:45:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![webfr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webfr/32/87580_2.png) [@webfr](https://discuss.elastic.co/u/webfr)\
**Post date:** [April 5, 2024, 11:45am UTC](https://discuss.elastic.co/t/how-to-move-from-2-node-cluster-to-single-node/356861/1 "2024-04-05T11:45:34Z")

</div>

Hello,  
I've two nodes configured like this: indices replica is 1.

> #define node 1 as master-eligible:  
> node.master: true
> 
> #define nodes 2 and 3 as data nodes:  
> node.data: true
> 
> #ingest mode  
> node.ingest: true

> **#define node 1 as master-eligible:**  
> **node.master: false**
> 
> **#define nodes 2 and 3 as data nodes:**  
> **node.data: true**
> 
> **#ingest mode**  
> **node.ingest: true**

How to change to single cluster mode or standalone by stopping node 2 (slave) ? I would like step-by-step please. Kibana interface is enabled.

Thanks.

---

<div class="post-metadata">

**Author:** ![webfr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webfr/32/87580_2.png) [@webfr](https://discuss.elastic.co/u/webfr)\
**Post date:** [April 5, 2024, 9:23pm UTC](https://discuss.elastic.co/t/how-to-move-from-2-node-cluster-to-single-node/356861/2 "2024-04-05T21:23:20Z")

</div>

Solved, followed this: [How to move from 3 node cluster to single node - #4 by leandrojmp](https://discuss.elastic.co/t/how-to-move-from-3-node-cluster-to-single-node/351132/4)

```auto
PUT _cluster/settings
{
  "persistent" : {
    "cluster.routing.allocation.exclude._ip" : "NODE-IP"
  }
}

```

```auto

PUT /*/_settings
{
 "index" : {
  "number_of_replicas":0,
  "auto_expand_replicas": false
 }
}

```

Removed node-2 references in elasticsearch.yml

Restart ES.

Stopped node 2 ES then shutdowned server.

Solved.
