# Setting Node ID

**URL:** <https://discuss.elastic.co/t/setting-node-id/17077>\
**Category:** Elasticsearch\
**Created:** [April 18, 2014, 11:00am UTC](https://discuss.elastic.co/t/setting-node-id/17077 "2014-04-18T11:00:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Salmon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_salmon/32/5330_2.png) [@Michael\_Salmon](https://discuss.elastic.co/u/Michael_Salmon)\
**Post date:** [April 18, 2014, 11:00am UTC](https://discuss.elastic.co/t/setting-node-id/17077/1 "2014-04-18T11:00:05Z")

</div>

I'm planning on trying out multiple nodes on one host and I'd like to be able to control the node id but as far as I can see this is set in NodeEnvironment to the first unused value. The reason for setting the id is so that I would like to include it in the node name which I currently set to the hostname.

How do others handle this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4bba7cbf-5e0d-4401-931b-6ef442d3c87d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4bba7cbf-5e0d-4401-931b-6ef442d3c87d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:35am UTC](https://discuss.elastic.co/t/setting-node-id/17077/2 "2017-07-06T01:35:04Z")

</div>


