# How to upgrade a cluster

**URL:** <https://discuss.elastic.co/t/how-to-upgrade-a-cluster/19158>\
**Category:** Elasticsearch\
**Created:** [August 8, 2014, 6:54am UTC](https://discuss.elastic.co/t/how-to-upgrade-a-cluster/19158 "2014-08-08T06:54:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [August 8, 2014, 6:54am UTC](https://discuss.elastic.co/t/how-to-upgrade-a-cluster/19158/1 "2014-08-08T06:54:55Z")

</div>

I am upgrading a cluster in version 1.0.3 to 1.2.3 and I am confused by  
something.

According to the description at  
here: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-upgrade.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-upgrade.html)  
I can disable the allocation before I started the upgrading process.

Then I disabled the allocation at first, after that I upgrade one of my  
node to 1.2.3, then restart the elasticsearch, I saw the node join  
the existing cluster well, but the upgraded node was keeping blank without  
any shards recognized, since the allocation has been  
disabled, the other nodes in old version did not do any reshard too. But  
according to the document I parsed above, it says that even  
I disable the allocation, " With shard reallocation disabled, the nodes  
will join the cluster with their indices intact"

I guess that if I proceed to upgrade the left nodes, all the shards will  
become unavailable since the restarted node does not recognize existing  
shards  
when allocation is disabled, thus I stopped my operation after the first  
node was upgraded.

My question is how I can upgrade my nodes with allocation disabled? Is it a  
bug? If I have to upgrade all the nodes with allocation enabling, it seems  
that  
a vast amount of unnecessary IO for resharding will occur.

--  
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/87b642e8-0f80-487b-8634-321fa2f3cb42%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/87b642e8-0f80-487b-8634-321fa2f3cb42%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:10am UTC](https://discuss.elastic.co/t/how-to-upgrade-a-cluster/19158/2 "2017-07-06T01:10:02Z")

</div>


