# Elasticsearch 2.1 node ID changed after restart

**URL:** https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543
**Category:** Elasticsearch
**Created:** [November 25, 2015, 11:55am UTC](https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543 "2015-11-25T11:55:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![radu.stefanache](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@radu.stefanache](https://discuss.elastic.co/u/radu.stefanache)
#### Post date: [November 25, 2015, 11:55am UTC](https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543/1 "2015-11-25T11:55:43Z")

</div>

Hello everyone,

I have a cluster with 3 nodes, each node has the name set in the elasticsearch.yml  
Today I've upgraded to ES 2.1 from 2.0 and found an interesting behaviour .  
Whenever I restart a node, it comes back with a totally different ID .

Example :  
[2015-11-25 11:37:14,356][INFO][cluster.service][node1] removed **{{node2}{m6A6gifIT527eqLasHxP\_g}**  
[2015-11-25 11:37:22,328][INFO][cluster.service][node1] added **{{node2}{nsoiqwmVTu6EC-dQnEoLaQ}**

If you are using Marvel, you will end up with a stale node, based on the old id .  
Did anyone else bumped into this ?  
In 2.0, the nodes were coming back with the same id .

---

<div class="post-metadata">

### Author: ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)
#### Post date: [November 25, 2015, 2:46pm UTC](https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543/2 "2015-11-25T14:46:53Z")

</div>

Hi,

the change of the node id is actually expected behaviour after restart. The id will be randomly generated unless you specify a specific seed ("discovery.id.seed") in your settings. Unless you did that in your 2.0 installation, I'm wondering how you would get the same id there.

---

<div class="post-metadata">

### Author: ![radu.stefanache](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@radu.stefanache](https://discuss.elastic.co/u/radu.stefanache)
#### Post date: [November 25, 2015, 2:50pm UTC](https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543/3 "2015-11-25T14:50:17Z")

</div>

I didn't used the discovery.id.seed .  
The only thing that I am not using is the multicast discovery mode so for me :

discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["node2", "node3"]

It's weird but all looks fine now, after a while I see that Marvel is refreshing the nodes and the ones with the old id disappear .

Thanks for the reply, Christoph!

---

<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, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-2-1-node-id-changed-after-restart/35543/4 "2017-07-05T23:35:53Z")

</div>


