# Rolling upgrade alternative?

**URL:** <https://discuss.elastic.co/t/rolling-upgrade-alternative/135798>\
**Category:** Elasticsearch\
**Created:** [June 13, 2018, 9:55pm UTC](https://discuss.elastic.co/t/rolling-upgrade-alternative/135798 "2018-06-13T21:55:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taganaka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taganaka/32/8415_2.png) [@taganaka](https://discuss.elastic.co/u/taganaka)\
**Post date:** [June 13, 2018, 9:55pm UTC](https://discuss.elastic.co/t/rolling-upgrade-alternative/135798/1 "2018-06-13T21:55:03Z")

</div>

Upgrading one node at a time, as suggested by the documentation, might not be feasible when ES deployment is part of an immutable infrastructure.

This is my approach when upgrading from minor versions. It is a sort of blue/green deployment.

1. Disable shard allocation
2. Add X new upgraded nodes to the cluster. Where X is the number of current live nodes
3. Exclude old nodes from allocation:

```auto
cluster.routing.allocation.exclude._ip : ip1,ip2,ip3...

```

1. Re-enable shard allocation. At this point, all the shards start migrating to the new upgraded nodes.
2. Wait for shard allocation to be completed.
3. Take the old nodes offline.

While this strategy is far to be optimal for a very large deployment, since it implies that the whole data has to be moved from the "blue" to the "green" cluster, I'm just wondering if I can consider it safe & legit.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 13, 2018, 9:59pm UTC](https://discuss.elastic.co/t/rolling-upgrade-alternative/135798/2 "2018-06-13T21:59:24Z")

</div>

That's totally fine if it's what you have to work with.

---

<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 11, 2018, 9:59pm UTC](https://discuss.elastic.co/t/rolling-upgrade-alternative/135798/3 "2018-07-11T21:59:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
