# Index and search node(s) (multinode cluster)

**URL:** <https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032>\
**Category:** Elasticsearch\
**Created:** [February 23, 2022, 12:17pm UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032 "2022-02-23T12:17:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_test](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_test/32/79287_2.png) [@dev\_test](https://discuss.elastic.co/u/dev_test)\
**Post date:** [February 23, 2022, 12:17pm UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/1 "2022-02-23T12:17:52Z")

</div>

Hi,

I'm creating a cluster for Elasticsearch having 3 nodes (one acting as master)  
I was to ask that while indexing or searching (considering we have a single index) will i be providing the IP-Address of same node for every cause and Elasticsearch will determine on its own which node to assign which task (or it will divide the load equally between the nodes)

or do i need to provide different IPs to access and manipulate nodes from my application

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2022, 1:01am UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/2 "2022-02-24T01:01:02Z")

</div>

From a client point of view, you can use any node in the cluster, then the cluster will handle allocation of the request with the other nodes and then return the response to the client.  
That means you can use a single IP, or all 3, or use a CNAME or load balancer endpoint that talks to all the nodes. It's up to you.

Also having a single master is going to cause you issues, you should make all 3 master eligible.

---

<div class="post-metadata">

**Author:** ![dev\_test](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_test/32/79287_2.png) [@dev\_test](https://discuss.elastic.co/u/dev_test)\
**Post date:** [February 24, 2022, 5:35am UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/3 "2022-02-24T05:35:23Z")

</div>

172.21.0.2 59 92 35 4.32 3.05 1.88 cdfhilmrstw - es01  
172.21.0.4 48 92 36 4.32 3.05 1.88 cdfhilmrstw - es03  
172.21.0.5 57 92 36 4.32 3.05 1.88 cdfhilmrstw \* es02

this is what i get when i run the command "GET \_cat/nodes" so i guess all these nodes are master eligible and it will work fine in a production environment.

and if i use the IP 172.21.0.2 i will be able to index and search data from all three nodes and (not causing any overhead to this single node)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2022, 8:16am UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/4 "2022-02-24T08:16:45Z")

</div>

> [@dev\_test](#):
>
> and if i use the IP 172.21.0.2 i will be able to index and search data from all three nodes and (not causing any overhead to this single node)

You can access the data on all nodes, but it's not free, so there will be an overhead.

---

<div class="post-metadata">

**Author:** ![dev\_test](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_test/32/79287_2.png) [@dev\_test](https://discuss.elastic.co/u/dev_test)\
**Post date:** [February 24, 2022, 8:22am UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/5 "2022-02-24T08:22:32Z")

</div>

So it is advised to use different ips on for different querying purposes. if so how do we calculate/determine how many number of request (or which tasks) a node can handle or any help regrading the usage of multi-node cluster.

---

<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:** [March 24, 2022, 8:22am UTC](https://discuss.elastic.co/t/index-and-search-node-s-multinode-cluster/298032/6 "2022-03-24T08:22:48Z")

</div>

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