# Upgrade from 90.3 to 90.5

**URL:** <https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116>\
**Category:** Elasticsearch\
**Created:** [October 25, 2013, 12:58pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116 "2013-10-25T12:58:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian2](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Adrian2](https://discuss.elastic.co/u/Adrian2)\
**Post date:** [October 25, 2013, 12:58pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/1 "2013-10-25T12:58:56Z")

</div>

Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5. What's  
the fastest and more reliable way to do this? I haven't found anything  
about this particular situation.  
Have anybody done this before?

Thank you

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 25, 2013, 1:46pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/2 "2013-10-25T13:46:10Z")

</div>

When we upgraded to 0.90.4 from 0.90.3 we did this:

-1. Make sure you have curl installed on all Elasticsearch nodes.  
0. Make sure you have enough capacity to handle queries with one less  
node. Two or three less nodes if you have a healthy sense of paranoia.

1. Make sure you have \> 2 nodes.
2. Make sure you have \> 0 replicas on each index. \> 1 replicas on each  
index if you have a healthy sense of paranoia.
3. Shut down one elasticsearch on one node.
4. Upgrade the code (deb package in our case).
5. Start elasticsearch.
6. Wait for the cluster state to go green again. Depending on the amount  
of data in your cluster this could take from seconds to hours. I ran this  
script so I could see updates every second:

until curl -s localhost:9200/\_cluster/health?pretty | tee /tmp/status  
| grep "status" | grep "green"  
do  
cat /tmp/status  
echo  
echo "Still waiting..."  
sleep 1  
done

1. Repeat 3-6 on each node.

If you did it right no one will notice but your network monitoring tools.  
They'll see a furious spike in data transfers. You can prevent this spike  
and speed up the process by turning off shard reallocation before step 3  
and turning it back on after step 5 like this:  
2.5.

curl -XPUT localhost:9200/\_cluster/settings?pretty -d '{  
"transient" : {  
"cluster.routing.allocation.disable\_allocation" : "true"  
}  
}'

5.5.

curl -XPUT localhost:9200/\_cluster/settings?pretty -d '{  
"transient" : {  
"cluster.routing.allocation.disable\_allocation" : "false"  
}  
}'

This setting affects your whole cluster so make sure you don't accidentally  
leave it off.

Nik

On Fri, Oct 25, 2013 at 8:58 AM, Adrián Van Langenhove \<  
[adrianvanlan@gmail.com](mailto:adrianvanlan@gmail.com)\> wrote:

> Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5. What's  
> the fastest and more reliable way to do this? I haven't found anything  
> about this particular situation.  
> Have anybody done this before?
> 
> Thank you
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)\
**Post date:** [October 25, 2013, 3:43pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/3 "2013-10-25T15:43:48Z")

</div>

In addition to upgrade steps, I'd also recommend to back up data in case  
there is any issue with newer version and you may need to downgrade back to  
older version. The index data after upgrade may no longer be compatible  
with old version.

On Friday, October 25, 2013 8:58:56 AM UTC-4, Adrián Van Langenhove wrote:

> Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5. What's  
> the fastest and more reliable way to do this? I haven't found anything  
> about this particular situation.  
> Have anybody done this before?
> 
> Thank you

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Adrian2](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Adrian2](https://discuss.elastic.co/u/Adrian2)\
**Post date:** [October 25, 2013, 4:30pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/4 "2013-10-25T16:30:41Z")

</div>

We currently have just 1 node. We can stop the service for a couple of  
hours, and we don't need back up of info, we can generate it again. Is  
there any basic script to upgrade? I'm new in linux.

2013/10/25 Ankush Jhalani [ankush.jhalani@gmail.com](mailto:ankush.jhalani@gmail.com)

> In addition to upgrade steps, I'd also recommend to back up data in case  
> there is any issue with newer version and you may need to downgrade back to  
> older version. The index data after upgrade may no longer be compatible  
> with old version.
> 
> On Friday, October 25, 2013 8:58:56 AM UTC-4, Adrián Van Langenhove wrote:
> 
> > Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5.  
> > What's the fastest and more reliable way to do this? I haven't found  
> > anything about this particular situation.  
> > Have anybody done this before?
> > 
> > Thank you
> 
> --  
> 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/44e9uzY-k48/unsubscribe](https://groups.google.com/d/topic/elasticsearch/44e9uzY-k48/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
_Adrián Van Langenhove_

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![george\_monroe](https://avatars.discourse-cdn.com/v4/letter/g/bbce88/32.png) [@george\_monroe](https://discuss.elastic.co/u/george_monroe)\
**Post date:** [October 25, 2013, 6:22pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/5 "2013-10-25T18:22:31Z")

</div>

If you can afford to stop the node, then just copying the data folder over  
into the new installation should do the job.

Cheers  
George

On Friday, October 25, 2013 9:30:41 AM UTC-7, Adrián Van Langenhove wrote:

> We currently have just 1 node. We can stop the service for a couple of  
> hours, and we don't need back up of info, we can generate it again. Is  
> there any basic script to upgrade? I'm new in linux.
> 
> 2013/10/25 Ankush Jhalani \<[ankush....@gmail.com](mailto:ankush....@gmail.com) \<javascript:\>\>
> 
> > In addition to upgrade steps, I'd also recommend to back up data in case  
> > there is any issue with newer version and you may need to downgrade back to  
> > older version. The index data after upgrade may no longer be compatible  
> > with old version.
> > 
> > On Friday, October 25, 2013 8:58:56 AM UTC-4, Adrián Van Langenhove wrote:
> > 
> > > Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5.  
> > > What's the fastest and more reliable way to do this? I haven't found  
> > > anything about this particular situation.  
> > > Have anybody done this before?
> > > 
> > > Thank you
> > 
> > --  
> > 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/44e9uzY-k48/unsubscribe](https://groups.google.com/d/topic/elasticsearch/44e9uzY-k48/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> _Adrián Van Langenhove_

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 25, 2013, 10:11pm UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/6 "2013-10-25T22:11:28Z")

</div>

Can you disable indexing? If so, after disabling indexing and disabling  
allocation (per Nik's excellent suggestions), you should flush your indices  
so that the transaction log is (hopefully) clear for when you re-enable  
allocation.

Just saw that you have only one node. Even if you have only one node and  
allocation does not pertain to your situation, flushing is still a good  
idea.

Other things to look at for is sub-directories. By default, the  
data/plugin/log directories are in the elasticsearch directory. You can  
copy these directories to your new install directory, but hopefully you  
have already configured them to live outside of elasticsearch. If you have  
not, then use this upgrade time to enable this best practice. Some plugins  
might not work between versions, but the most common ones do.

Cheers,

Ivan

On Fri, Oct 25, 2013 at 11:22 AM, george\_monroe [yuri.panchenko@gmail.com](mailto:yuri.panchenko@gmail.com)wrote:

> If you can afford to stop the node, then just copying the data folder over  
> into the new installation should do the job.
> 
> Cheers  
> George
> 
> On Friday, October 25, 2013 9:30:41 AM UTC-7, Adrián Van Langenhove wrote:
> 
> > We currently have just 1 node. We can stop the service for a couple of  
> > hours, and we don't need back up of info, we can generate it again. Is  
> > there any basic script to upgrade? I'm new in linux.
> > 
> > 2013/10/25 Ankush Jhalani [ankush....@gmail.com](mailto:ankush....@gmail.com)
> > 
> > > In addition to upgrade steps, I'd also recommend to back up data in case  
> > > there is any issue with newer version and you may need to downgrade back to  
> > > older version. The index data after upgrade may no longer be compatible  
> > > with old version.
> > > 
> > > On Friday, October 25, 2013 8:58:56 AM UTC-4, Adrián Van Langenhove  
> > > wrote:
> > > 
> > > > Hi! I have an app that uses ES 90.3, and i want to upgrade to 90.5.  
> > > > What's the fastest and more reliable way to do this? I haven't found  
> > > > anything about this particular situation.  
> > > > Have anybody done this before?
> > > > 
> > > > Thank you
> > > 
> > > --  
> > > 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/](https://groups.google.com/d/)\*\*  
> > > topic/elasticsearch/44e9uzY-\*\*k48/unsubscribe[https://groups.google.com/d/topic/elasticsearch/44e9uzY-k48/unsubscribe](https://groups.google.com/d/topic/elasticsearch/44e9uzY-k48/unsubscribe)  
> > > .  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > _Adrián Van Langenhove_
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:10am UTC](https://discuss.elastic.co/t/upgrade-from-90-3-to-90-5/14116/7 "2017-07-06T02:10:32Z")

</div>


