# Elasticsearch maintenance with cluster.routing.allocation.enable=none

**URL:** https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298
**Category:** Elasticsearch
**Created:** [March 31, 2018, 12:26am UTC](https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298 "2018-03-31T00:26:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [March 31, 2018, 12:26am UTC](https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298/1 "2018-03-31T00:26:01Z")

</div>

When doing a rolling upgrade, it says to set "cluster.routing.allocation.enable=none" and then flush.

1. Is the documentation for 6.2 wrong in that it disables using persistent and then does transient? Should it not be both transient? I see that someone else had the same question and also in the 5.6 documentation it says to use transient for disabling and enabling allocation ([Rolling Upgrade Documentation Incorrect?](https://discuss.elastic.co/t/rolling-upgrade-documentation-incorrect/118114)).

2. How is this considered a rolling upgrade since we are essentially down when issuing the "cluster.routing.allocation.enable=none" command? I am not able to create any new indexes at this time and I'm only able to add documents to existing indexes. Do these index creates just fail and disappear with the error "no allocations are allowed due to cluster setting [cluster.routing.allocation.enable=none]"? From my testing, these documents that I try and create while my cluster allocation.enable is set to none is lost. Please tell me if I'm wrong.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html)  
[https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rolling-upgrades.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rolling-upgrades.html)

---

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [April 2, 2018, 3:47pm UTC](https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298/2 "2018-04-02T15:47:30Z")

</div>

In the documentation it says, "While you can continue indexing during the upgrade, shard recovery is much faster if you temporarily stop non-essential indexing and perform a synced-flush." but I'm not able to create any new indexes. Am I missing something?

---

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [April 11, 2018, 2:47pm UTC](https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298/3 "2018-04-11T14:47:21Z")

</div>

could someone please respond to this?

---

<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: [May 9, 2018, 2:47pm UTC](https://discuss.elastic.co/t/elasticsearch-maintenance-with-cluster-routing-allocation-enable-none/126298/4 "2018-05-09T14:47:42Z")

</div>

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