# Multiple Node configuration on same host

**URL:** <https://discuss.elastic.co/t/multiple-node-configuration-on-same-host/68352>\
**Category:** Elasticsearch\
**Created:** [December 7, 2016, 7:29pm UTC](https://discuss.elastic.co/t/multiple-node-configuration-on-same-host/68352 "2016-12-07T19:29:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raaj\_mndl](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@raaj\_mndl](https://discuss.elastic.co/u/raaj_mndl)\
**Post date:** [December 7, 2016, 7:29pm UTC](https://discuss.elastic.co/t/multiple-node-configuration-on-same-host/68352/1 "2016-12-07T19:29:50Z")

</div>

How do I configure multiple nodes on a same machine(single host name)?  
I checked the unicast settings but I noticed most of the examples use different host names and keep the port number same(9300), but in my case I need two nodes on a same host. Or do I even need unicast here?

**Node 1**  
[cluster.name](http://cluster.name): MARVEL  
[node.name](http://node.name): HULK  
node.master: true  
node.data: true  
bootstrap.mlockall: true  
network.host: 172.27.214.143  
http.port: 9200  
transport.tcp.port:9300  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["172.27.214.143", "172.27.214.143:9301"]

**Node 2**  
[cluster.name](http://cluster.name): MARVEL  
[node.name](http://node.name): ROMANOV  
node.master: false  
node.data: true  
bootstrap.mlockall: true  
network.host: 172.27.214.143  
http.port: 9201  
transport.tcp.port:9301  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["172.27.214.143", "172.27.214.143:9300"]

Is this the right approach?

I am getting this error when I shut down Hulk and Start Romanov  
**[2016-12-07 15:05:52,624][DEBUG][action.admin.indices.get] [ROMANOV] no known master node, scheduling a retry**

and when I try to access a document on Node 2 that I created on Node 1, I get the below exception  
**ClusterBlockException[blocked by: [SERVICE\_UNAVAILABLE/1/state not recovered / initialized];]**

Thanks,  
Raaj

---

<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:** [January 4, 2017, 7:30pm UTC](https://discuss.elastic.co/t/multiple-node-configuration-on-same-host/68352/2 "2017-01-04T19:30:02Z")

</div>

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