# How to put Elasticsearch in only a node a single elasticsearch instance

**URL:** <https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 1:49pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514 "2016-10-20T13:49:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Diaz\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Juan\_Diaz\_Gonzalez](https://discuss.elastic.co/u/Juan_Diaz_Gonzalez)\
**Post date:** [October 20, 2016, 1:49pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/1 "2016-10-20T13:49:35Z")

</div>

How to put Elasticsearch in only a node a single elasticsearch instance?

I was interesed to put a single elasticsearch instance working in a only a node. Without replicas no sharding etc...

Could somebody tell me about what parameters to modify?

The version of Elasticsearch is the lastone the 2.4.4

Thanks in advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 20, 2016, 1:51pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/2 "2016-10-20T13:51:18Z")

</div>

You're asking how to run just one node, in other words _not_ run a multi-node cluster? You don't have to do anything for that. Just don't connect additional nodes to your cluster.

---

<div class="post-metadata">

**Author:** ![Juan\_Diaz\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Juan\_Diaz\_Gonzalez](https://discuss.elastic.co/u/Juan_Diaz_Gonzalez)\
**Post date:** [October 20, 2016, 1:57pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/3 "2016-10-20T13:57:13Z")

</div>

Yes, is that I need. Only a node,

So in this way I was thinking in modify this :

index.number\_of\_shards: 1  
index.number\_of\_replicas: 0

But I dont konw how to modify the network settings I was thinking to put:  
discovery.zen.ping.unicast.hosts: ["my\_host"]

I don´t know how to modify the network part.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 20, 2016, 2:01pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/4 "2016-10-20T14:01:59Z")

</div>

Again, you don't have to do anything.

Using a single shard probably makes sense right now but it ultimately depends on what you're doing to store, how many indexes, their growth, whether you might add an extra node later, and so on. Of course, the value in elasticsearch.yml is just a default. You can always override it when indexes are created.

---

<div class="post-metadata">

**Author:** ![Juan\_Diaz\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Juan\_Diaz\_Gonzalez](https://discuss.elastic.co/u/Juan_Diaz_Gonzalez)\
**Post date:** [October 20, 2016, 2:13pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/5 "2016-10-20T14:13:04Z")

</div>

Ok, and a question more

Will it be necesary modify the network parameters so in this way it does not look for more nodes in the network?

It is a first step in our development maybe in a future we need more information but we have to have a little google of our local files, programms etc, so it will be not so much information, less than 1 Gb

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 20, 2016, 2:15pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/6 "2016-10-20T14:15:23Z")

</div>

> Will it be necesary modify the network parameters so in this way it does not look for more nodes in the network?

No. Multicast discovery is disabled by default as of ES 2.0.

---

<div class="post-metadata">

**Author:** ![Juan\_Diaz\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Juan\_Diaz\_Gonzalez](https://discuss.elastic.co/u/Juan_Diaz_Gonzalez)\
**Post date:** [October 20, 2016, 2:17pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/7 "2016-10-20T14:17:42Z")

</div>

Ok,

**_Thanks for your help!!!_** It´s so grateful to be helped so early.

Best regards

Juan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:10pm UTC](https://discuss.elastic.co/t/how-to-put-elasticsearch-in-only-a-node-a-single-elasticsearch-instance/63514/8 "2017-07-05T22:10:47Z")

</div>


