# Is it safe to change node names in an existing ElasticSearch cluster

**URL:** <https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241>\
**Category:** Elasticsearch\
**Created:** [February 18, 2015, 3:14pm UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241 "2015-02-18T15:14:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 18, 2015, 3:14pm UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/1 "2015-02-18T15:14:02Z")

</div>

Hi !

Is it safe to change the node names of my 3 nodes in an existing  
elasticsearch 1.4.0 cluster ?

The reason is to get rid of the random names like: Elizabeth "Betsy"  
Braddock, Franz Kafka, etc...

Is it just to set the node.name: "server name" in elasticsearch.yml and  
then restart the daemon ?  
Do I do it one node at the time, or do I need down the cluster and then  
change all node names, and then bring up the cluster again ?

//Jan-Erik

--  
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/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 18, 2015, 3:17pm UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/2 "2015-02-18T15:17:27Z")

</div>

Yes. It’s safe.  
You can do it one at a time.

If you already have data around and don’t want your shards moving during this, you should disable allocation.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> 
> Hi !
> 
> Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> 
> The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> 
> Is it just to set the node.name: "server name" in elasticsearch.yml and then restart the daemon ?  
> Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> 
> //Jan-Erik
> 
> --  
> 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/1916C068-085D-4F86-B877-FE4F9003B46D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1916C068-085D-4F86-B877-FE4F9003B46D%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 18, 2015, 3:37pm UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/3 "2015-02-18T15:37:57Z")

</div>

Thanks David !

All my "Recovery Throttling settings" are default in the elasticsearch.yml  
file.  
How do I disable allocation, in a running production environment ?  
Do I need to disable allocation first, restart each node / daemon, and  
after rename the nodes ?

Or maybe it would be better to down the ES cluster (all 3 nodes) during a  
maintenance windows, change all names, and then restart the ES cluster  
nodes again ?

//Jan-Erik

Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:

> Yes. It’s safe.  
> You can do it one at a time.
> 
> If you already have data around and don’t want your shards moving during  
> this, you should disable allocation.
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 févr. 2015 à 16:14, Jan-Erik Westlund \<[je.we...@gmail.com](mailto:je.we...@gmail.com)  
> \<javascript:\>\> a écrit :
> 
> Hi !
> 
> Is it safe to change the node names of my 3 nodes in an existing  
> elasticsearch 1.4.0 cluster ?
> 
> The reason is to get rid of the random names like: Elizabeth "Betsy"  
> Braddock, Franz Kafka, etc...
> 
> Is it just to set the node.name: "server name" in elasticsearch.yml and  
> then restart the daemon ?  
> Do I do it one node at the time, or do I need down the cluster and then  
> change all node names, and then bring up the cluster again ?
> 
> //Jan-Erik
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 18, 2015, 3:43pm UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/4 "2015-02-18T15:43:25Z")

</div>

Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart) [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#\_rolling\_restart\_of\_nodes\_full\_cluster\_restart](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> 
> Thanks David !
> 
> All my "Recovery Throttling settings" are default in the elasticsearch.yml file.  
> How do I disable allocation, in a running production environment ?  
> Do I need to disable allocation first, restart each node / daemon, and after rename the nodes ?
> 
> Or maybe it would be better to down the ES cluster (all 3 nodes) during a maintenance windows, change all names, and then restart the ES cluster nodes again ?
> 
> //Jan-Erik
> 
> Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:  
> Yes. It’s safe.  
> You can do it one at a time.
> 
> If you already have data around and don’t want your shards moving during this, you should disable allocation.
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com) [http://elasticsearch.com/](http://elasticsearch.com/)  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund \<[je.we...@gmail.com](mailto:je.we...@gmail.com) \<javascript:\>\> a écrit :
> > 
> > Hi !
> > 
> > Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> > 
> > The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> > 
> > Is it just to set the node.name [http://node.name/](http://node.name/): "server name" in elasticsearch.yml and then restart the daemon ?  
> > Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> > 
> > //Jan-Erik
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/639A13FF-A6F9-4309-9D8A-B4C83184D6EE%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/639A13FF-A6F9-4309-9D8A-B4C83184D6EE%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 19, 2015, 6:33am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/5 "2015-02-19T06:33:53Z")

</div>

Hi again !

Thanks for Rolling restart info, that was really helpful.  
But since the "elasticsearch.yml" file is managed by Puppet, all the  
nodenames will change pretty much at the same time !  
So in my case it would be best to shutdown the ES daemon on all nodes  
first, apply the Puppet changes and then start the ES cluster again...  
Is it safe to do so ?

//Jan-Erik

Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:

> Have a look at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 févr. 2015 à 16:37, Jan-Erik Westlund \<[je.we...@gmail.com](mailto:je.we...@gmail.com)  
> \<javascript:\>\> a écrit :
> 
> Thanks David !
> 
> All my "Recovery Throttling settings" are default in the  
> elasticsearch.yml file.  
> How do I disable allocation, in a running production environment ?  
> Do I need to disable allocation first, restart each node / daemon, and  
> after rename the nodes ?
> 
> Or maybe it would be better to down the ES cluster (all 3 nodes) during a  
> maintenance windows, change all names, and then restart the ES cluster  
> nodes again ?
> 
> //Jan-Erik
> 
> Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:
> 
> > Yes. It’s safe.  
> > You can do it one at a time.
> > 
> > If you already have data around and don’t want your shards moving during  
> > this, you should disable allocation.
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > [http://elasticsearch.com/](http://elasticsearch.com/)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> > [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> > [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit  
> > :
> > 
> > Hi !
> > 
> > Is it safe to change the node names of my 3 nodes in an existing  
> > elasticsearch 1.4.0 cluster ?
> > 
> > The reason is to get rid of the random names like: Elizabeth "Betsy"  
> > Braddock, Franz Kafka, etc...
> > 
> > Is it just to set the node.name: "server name" in elasticsearch.yml and  
> > then restart the daemon ?  
> > Do I do it one node at the time, or do I need down the cluster and then  
> > change all node names, and then bring up the cluster again ?
> > 
> > //Jan-Erik
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2015, 6:47am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/6 "2015-02-19T06:47:01Z")

</div>

You can change safely elasticsearch.yml file while elasticsearch is running.  
This file is only loaded when elasticsearch starts.

David

> Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> 
> Hi again !
> 
> Thanks for Rolling restart info, that was really helpful.  
> But since the "elasticsearch.yml" file is managed by Puppet, all the nodenames will change pretty much at the same time !  
> So in my case it would be best to shutdown the ES daemon on all nodes first, apply the Puppet changes and then start the ES cluster again...  
> Is it safe to do so ?
> 
> //Jan-Erik
> 
> > Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:  
> > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > 
> > > Thanks David !
> > > 
> > > All my "Recovery Throttling settings" are default in the elasticsearch.yml file.  
> > > How do I disable allocation, in a running production environment ?  
> > > Do I need to disable allocation first, restart each node / daemon, and after rename the nodes ?
> > > 
> > > Or maybe it would be better to down the ES cluster (all 3 nodes) during a maintenance windows, change all names, and then restart the ES cluster nodes again ?
> > > 
> > > //Jan-Erik
> > > 
> > > > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:  
> > > > Yes. It’s safe.  
> > > > You can do it one at a time.
> > > > 
> > > > If you already have data around and don’t want your shards moving during this, you should disable allocation.
> > > > 
> > > > --  
> > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > 
> > > > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > 
> > > > > Hi !
> > > > > 
> > > > > Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> > > > > 
> > > > > The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> > > > > 
> > > > > Is it just to set the node.name: "server name" in elasticsearch.yml and then restart the daemon ?  
> > > > > Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> > > > > 
> > > > > //Jan-Erik
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 19, 2015, 6:52am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/7 "2015-02-19T06:52:31Z")

</div>

I understand that, but is it safe to change all the nodenames and restart all the nodes at the same time ?

Skickat från min iPhone 6.

> 19 feb 2015 kl. 07:47 skrev David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> 
> You can change safely elasticsearch.yml file while elasticsearch is running.  
> This file is only loaded when elasticsearch starts.
> 
> David
> 
> > Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> > 
> > Hi again !
> > 
> > Thanks for Rolling restart info, that was really helpful.  
> > But since the "elasticsearch.yml" file is managed by Puppet, all the nodenames will change pretty much at the same time !  
> > So in my case it would be best to shutdown the ES daemon on all nodes first, apply the Puppet changes and then start the ES cluster again...  
> > Is it safe to do so ?
> > 
> > //Jan-Erik
> > 
> > > Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:  
> > > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)
> > > 
> > > --  
> > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > 
> > > > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > 
> > > > Thanks David !
> > > > 
> > > > All my "Recovery Throttling settings" are default in the elasticsearch.yml file.  
> > > > How do I disable allocation, in a running production environment ?  
> > > > Do I need to disable allocation first, restart each node / daemon, and after rename the nodes ?
> > > > 
> > > > Or maybe it would be better to down the ES cluster (all 3 nodes) during a maintenance windows, change all names, and then restart the ES cluster nodes again ?
> > > > 
> > > > //Jan-Erik
> > > > 
> > > > > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:  
> > > > > Yes. It’s safe.  
> > > > > You can do it one at a time.
> > > > > 
> > > > > If you already have data around and don’t want your shards moving during this, you should disable allocation.
> > > > > 
> > > > > --  
> > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > > 
> > > > > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > > 
> > > > > > Hi !
> > > > > > 
> > > > > > Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> > > > > > 
> > > > > > The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> > > > > > 
> > > > > > Is it just to set the node.name: "server name" in elasticsearch.yml and then restart the daemon ?  
> > > > > > Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> > > > > > 
> > > > > > //Jan-Erik
> > > > > > 
> > > > > > --  
> > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2015, 6:58am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/8 "2015-02-19T06:58:16Z")

</div>

You should define this in that case: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html#recover-after)

But it's not anymore a rolling upgrade, right? Your service will be down for some seconds/minutes I guess.

David

> Le 19 févr. 2015 à 07:52, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> 
> I understand that, but is it safe to change all the nodenames and restart all the nodes at the same time ?
> 
> Skickat från min iPhone 6.
> 
> > 19 feb 2015 kl. 07:47 skrev David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> > 
> > You can change safely elasticsearch.yml file while elasticsearch is running.  
> > This file is only loaded when elasticsearch starts.
> > 
> > David
> > 
> > > Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> > > 
> > > Hi again !
> > > 
> > > Thanks for Rolling restart info, that was really helpful.  
> > > But since the "elasticsearch.yml" file is managed by Puppet, all the nodenames will change pretty much at the same time !  
> > > So in my case it would be best to shutdown the ES daemon on all nodes first, apply the Puppet changes and then start the ES cluster again...  
> > > Is it safe to do so ?
> > > 
> > > //Jan-Erik
> > > 
> > > > Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:  
> > > > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)
> > > > 
> > > > --  
> > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > 
> > > > > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > 
> > > > > Thanks David !
> > > > > 
> > > > > All my "Recovery Throttling settings" are default in the elasticsearch.yml file.  
> > > > > How do I disable allocation, in a running production environment ?  
> > > > > Do I need to disable allocation first, restart each node / daemon, and after rename the nodes ?
> > > > > 
> > > > > Or maybe it would be better to down the ES cluster (all 3 nodes) during a maintenance windows, change all names, and then restart the ES cluster nodes again ?
> > > > > 
> > > > > //Jan-Erik
> > > > > 
> > > > > > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:  
> > > > > > Yes. It’s safe.  
> > > > > > You can do it one at a time.
> > > > > > 
> > > > > > If you already have data around and don’t want your shards moving during this, you should disable allocation.
> > > > > > 
> > > > > > --  
> > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > > > 
> > > > > > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > > > 
> > > > > > > Hi !
> > > > > > > 
> > > > > > > Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> > > > > > > 
> > > > > > > The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> > > > > > > 
> > > > > > > Is it just to set the node.name: "server name" in elasticsearch.yml and then restart the daemon ?  
> > > > > > > Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> > > > > > > 
> > > > > > > //Jan-Erik
> > > > > > > 
> > > > > > > --  
> > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > --  
> > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > --  
> > > 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/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 19, 2015, 7:56am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/9 "2015-02-19T07:56:44Z")

</div>

Correct, in that case, it will not be a rolling upgrade 😉 The service  
will be down for a few minutes.  
Can I then change all the nodenames, and the start the services on all the  
nodes with the new names without messing things up ?

2015-02-19 7:58 GMT+01:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):

> You should define this in that case:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html#recover-after)
> 
> But it's not anymore a rolling upgrade, right? Your service will be down  
> for some seconds/minutes I guess.
> 
> David
> 
> Le 19 févr. 2015 à 07:52, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a  
> écrit :
> 
> I understand that, but is it safe to change all the nodenames and restart  
> all the nodes at the same time ?
> 
> Skickat från min iPhone 6.
> 
> 19 feb 2015 kl. 07:47 skrev David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> 
> You can change safely elasticsearch.yml file while elasticsearch is  
> running.  
> This file is only loaded when elasticsearch starts.
> 
> David
> 
> Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a  
> écrit :
> 
> Hi again !
> 
> Thanks for Rolling restart info, that was really helpful.  
> But since the "elasticsearch.yml" file is managed by Puppet, all the  
> nodenames will change pretty much at the same time !  
> So in my case it would be best to shutdown the ES daemon on all nodes  
> first, apply the Puppet changes and then start the ES cluster again...  
> Is it safe to do so ?
> 
> //Jan-Erik
> 
> Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:
> 
> > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > reference/current/cluster-nodes-shutdown.html#_rolling_  
> > restart\_of\_nodes\_full\_cluster\_restart
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> > [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> > [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit  
> > :
> > 
> > Thanks David !
> > 
> > All my "Recovery Throttling settings" are default in the  
> > elasticsearch.yml file.  
> > How do I disable allocation, in a running production environment ?  
> > Do I need to disable allocation first, restart each node / daemon, and  
> > after rename the nodes ?
> > 
> > Or maybe it would be better to down the ES cluster (all 3 nodes) during a  
> > maintenance windows, change all names, and then restart the ES cluster  
> > nodes again ?
> > 
> > //Jan-Erik
> > 
> > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:
> > 
> > > Yes. It’s safe.  
> > > You can do it one at a time.
> > > 
> > > If you already have data around and don’t want your shards moving during  
> > > this, you should disable allocation.
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > [http://elasticsearch.com/](http://elasticsearch.com/)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> > > [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> > > [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a  
> > > écrit :
> > > 
> > > Hi !
> > > 
> > > Is it safe to change the node names of my 3 nodes in an existing  
> > > elasticsearch 1.4.0 cluster ?
> > > 
> > > The reason is to get rid of the random names like: Elizabeth "Betsy"  
> > > Braddock, Franz Kafka, etc...
> > > 
> > > Is it just to set the node.name: "server name" in elasticsearch.yml and  
> > > then restart the daemon ?  
> > > Do I do it one node at the time, or do I need down the cluster and then  
> > > change all node names, and then bring up the cluster again ?
> > > 
> > > //Jan-Erik
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%  
> > [40googlegroups.com](http://40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAH7LSTZJuoD0kCvMnQpJ2jJAt\_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH7LSTZJuoD0kCvMnQpJ2jJAt_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2015, 8:06am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/10 "2015-02-19T08:06:19Z")

</div>

Yes.

David

> Le 19 févr. 2015 à 08:56, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> 
> Correct, in that case, it will not be a rolling upgrade 😉 The service will be down for a few minutes.  
> Can I then change all the nodenames, and the start the services on all the nodes with the new names without messing things up ?
> 
> 2015-02-19 7:58 GMT+01:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> 
> > You should define this in that case: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html#recover-after)
> > 
> > But it's not anymore a rolling upgrade, right? Your service will be down for some seconds/minutes I guess.
> > 
> > David
> > 
> > > Le 19 févr. 2015 à 07:52, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> > > 
> > > I understand that, but is it safe to change all the nodenames and restart all the nodes at the same time ?
> > > 
> > > Skickat från min iPhone 6.
> > > 
> > > > 19 feb 2015 kl. 07:47 skrev David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> > > > 
> > > > You can change safely elasticsearch.yml file while elasticsearch is running.  
> > > > This file is only loaded when elasticsearch starts.
> > > > 
> > > > David
> > > > 
> > > > > Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a écrit :
> > > > > 
> > > > > Hi again !
> > > > > 
> > > > > Thanks for Rolling restart info, that was really helpful.  
> > > > > But since the "elasticsearch.yml" file is managed by Puppet, all the nodenames will change pretty much at the same time !  
> > > > > So in my case it would be best to shutdown the ES daemon on all nodes first, apply the Puppet changes and then start the ES cluster again...  
> > > > > Is it safe to do so ?
> > > > > 
> > > > > //Jan-Erik
> > > > > 
> > > > > > Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:  
> > > > > > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html#_rolling_restart_of_nodes_full_cluster_restart)
> > > > > > 
> > > > > > --  
> > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > > > 
> > > > > > > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > > > 
> > > > > > > Thanks David !
> > > > > > > 
> > > > > > > All my "Recovery Throttling settings" are default in the elasticsearch.yml file.  
> > > > > > > How do I disable allocation, in a running production environment ?  
> > > > > > > Do I need to disable allocation first, restart each node / daemon, and after rename the nodes ?
> > > > > > > 
> > > > > > > Or maybe it would be better to down the ES cluster (all 3 nodes) during a maintenance windows, change all names, and then restart the ES cluster nodes again ?
> > > > > > > 
> > > > > > > //Jan-Erik
> > > > > > > 
> > > > > > > > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:  
> > > > > > > > Yes. It’s safe.  
> > > > > > > > You can do it one at a time.
> > > > > > > > 
> > > > > > > > If you already have data around and don’t want your shards moving during this, you should disable allocation.
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > > > > > > 
> > > > > > > > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a écrit :
> > > > > > > > > 
> > > > > > > > > Hi !
> > > > > > > > > 
> > > > > > > > > Is it safe to change the node names of my 3 nodes in an existing elasticsearch 1.4.0 cluster ?
> > > > > > > > > 
> > > > > > > > > The reason is to get rid of the random names like: Elizabeth "Betsy" Braddock, Franz Kafka, etc...
> > > > > > > > > 
> > > > > > > > > Is it just to set the node.name: "server name" in elasticsearch.yml and then restart the daemon ?  
> > > > > > > > > Do I do it one node at the time, or do I need down the cluster and then change all node names, and then bring up the cluster again ?
> > > > > > > > > 
> > > > > > > > > //Jan-Erik
> > > > > > > > > 
> > > > > > > > > --  
> > > > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com).  
> > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --  
> > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > > > > To unsubscribe from this group and all its topics, 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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > > > --  
> > > > > 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/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAH7LSTZJuoD0kCvMnQpJ2jJAt\_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH7LSTZJuoD0kCvMnQpJ2jJAt_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jan\_Erik\_Westlund](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jan\_Erik\_Westlund](https://discuss.elastic.co/u/Jan_Erik_Westlund)\
**Post date:** [February 19, 2015, 9:03am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/11 "2015-02-19T09:03:17Z")

</div>

Ok, thanks again.

2015-02-19 9:06 GMT+01:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):

> Yes.
> 
> David
> 
> Le 19 févr. 2015 à 08:56, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a  
> écrit :
> 
> Correct, in that case, it will not be a rolling upgrade 😉 The service  
> will be down for a few minutes.  
> Can I then change all the nodenames, and the start the services on all the  
> nodes with the new names without messing things up ?
> 
> 2015-02-19 7:58 GMT+01:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> 
> > You should define this in that case:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html#recover-after)
> > 
> > But it's not anymore a rolling upgrade, right? Your service will be down  
> > for some seconds/minutes I guess.
> > 
> > David
> > 
> > Le 19 févr. 2015 à 07:52, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a  
> > écrit :
> > 
> > I understand that, but is it safe to change all the nodenames and restart  
> > all the nodes at the same time ?
> > 
> > Skickat från min iPhone 6.
> > 
> > 19 feb 2015 kl. 07:47 skrev David Pilato [david@pilato.fr](mailto:david@pilato.fr):
> > 
> > You can change safely elasticsearch.yml file while elasticsearch is  
> > running.  
> > This file is only loaded when elasticsearch starts.
> > 
> > David
> > 
> > Le 19 févr. 2015 à 07:33, Jan-Erik Westlund [je.westlund@gmail.com](mailto:je.westlund@gmail.com) a  
> > écrit :
> > 
> > Hi again !
> > 
> > Thanks for Rolling restart info, that was really helpful.  
> > But since the "elasticsearch.yml" file is managed by Puppet, all the  
> > nodenames will change pretty much at the same time !  
> > So in my case it would be best to shutdown the ES daemon on all nodes  
> > first, apply the Puppet changes and then start the ES cluster again...  
> > Is it safe to do so ?
> > 
> > //Jan-Erik
> > 
> > Den onsdag 18 februari 2015 kl. 16:44:35 UTC+1 skrev David Pilato:
> > 
> > > Have a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > > reference/current/cluster-nodes-shutdown.html#_rolling_  
> > > restart\_of\_nodes\_full\_cluster\_restart
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> > > [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> > > [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 févr. 2015 à 16:37, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a  
> > > écrit :
> > > 
> > > Thanks David !
> > > 
> > > All my "Recovery Throttling settings" are default in the  
> > > elasticsearch.yml file.  
> > > How do I disable allocation, in a running production environment ?  
> > > Do I need to disable allocation first, restart each node / daemon, and  
> > > after rename the nodes ?
> > > 
> > > Or maybe it would be better to down the ES cluster (all 3 nodes) during  
> > > a maintenance windows, change all names, and then restart the ES cluster  
> > > nodes again ?
> > > 
> > > //Jan-Erik
> > > 
> > > Den onsdag 18 februari 2015 kl. 16:18:42 UTC+1 skrev David Pilato:
> > > 
> > > > Yes. It’s safe.  
> > > > You can do it one at a time.
> > > > 
> > > > If you already have data around and don’t want your shards moving  
> > > > during this, you should disable allocation.
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > [http://elasticsearch.com/](http://elasticsearch.com/)_  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> > > > [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> > > > [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 18 févr. 2015 à 16:14, Jan-Erik Westlund [je.we...@gmail.com](mailto:je.we...@gmail.com) a  
> > > > écrit :
> > > > 
> > > > Hi !
> > > > 
> > > > Is it safe to change the node names of my 3 nodes in an existing  
> > > > elasticsearch 1.4.0 cluster ?
> > > > 
> > > > The reason is to get rid of the random names like: Elizabeth "Betsy"  
> > > > Braddock, Franz Kafka, etc...
> > > > 
> > > > Is it just to set the node.name: "server name" in elasticsearch.yml  
> > > > and then restart the daemon ?  
> > > > Do I do it one node at the time, or do I need down the cluster and then  
> > > > change all node names, and then bring up the cluster again ?
> > > > 
> > > > //Jan-Erik
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0bed6a3d-9315-4060-9585-cf68907f844b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a79c0ae3-d786-4bf4-80cb-61acdb8804d3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9eca2130-030d-468c-825d-b66c8766ba4a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr)  
> > [https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/48CE0F31-5B2A-4F47-B210-3786C818C834%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/F8956AA2-2066-407B-A42C-A5D68097B1E9%40gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr)  
> > [https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/FC54F28D-05E7-4EEE-A7C3-7364DF4D863A%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAH7LSTZJuoD0kCvMnQpJ2jJAt\_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH7LSTZJuoD0kCvMnQpJ2jJAt_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAH7LSTZJuoD0kCvMnQpJ2jJAt\_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH7LSTZJuoD0kCvMnQpJ2jJAt_egjwaRf2fNrg%3Dkfh8y9DF4xg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe](https://groups.google.com/d/topic/elasticsearch/ZjOHjpXVZ00/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/33739DCE-DDCE-48D7-B24F-38C628EFEB75%40pilato.fr?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAH7LSTaNRr\_UWOjhucySubR8%2BzB3tsy6q00js1DbAezcpzhdOw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH7LSTaNRr_UWOjhucySubR8%2BzB3tsy6q00js1DbAezcpzhdOw%40mail.gmail.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, 12:31am UTC](https://discuss.elastic.co/t/is-it-safe-to-change-node-names-in-an-existing-elasticsearch-cluster/22241/12 "2017-07-06T00:31:37Z")

</div>


