# Shard allocation with hot - warm stacks

**URL:** https://discuss.elastic.co/t/shard-allocation-with-hot-warm-stacks/191890
**Category:** Elasticsearch
**Created:** [July 23, 2019, 6:19pm UTC](https://discuss.elastic.co/t/shard-allocation-with-hot-warm-stacks/191890 "2019-07-23T18:19:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jathin](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jathin](https://discuss.elastic.co/u/Jathin)
#### Post date: [July 23, 2019, 6:19pm UTC](https://discuss.elastic.co/t/shard-allocation-with-hot-warm-stacks/191890/1 "2019-07-23T18:19:11Z")

</div>

All nodes(master, hot and warm) are on elasticsearch v7.2.0.  
hot nodes have node.attr.hot\_stack: hot\_stack\_a and warm nodes have node.attr.warm\_stack: warm\_stack\_b

```
_cluster/settings
  { "transient": {
        "cluster": {
            "routing": {
                "allocation": {
                    "include": {
                        "warm_stack": "warm_stack_a",
                        "hot_stack": "hot_stack_a"
                    }
                }
            }
        }
    }

```

i am adding a new set of hot nodes with node.attr.hot\_stack: hot\_stack\_b and then update settings

```
_cluster/settings      
  { "transient": {
        "cluster": {
            "routing": {
                "allocation": {
                    "include": {
                        "warm_stack": "warm_stack_a",
                        "hot_stack": "hot_stack_b"
                    }
                }
            }
        }
    }

```

it seems elasticsearch is not relocating all shards to hot\_stack\_b and no shards are allocated to warm\_stack\_a.  
so when i do another cluster settings update cluster.routing.allocation.include.warm-stack : "warm\_stack\_something\_else" and then update it back to "warm\_stack\_a" (not make any changes to cluster.routing.allocation.include.hot\_stack setting) then all shards move to wam\_stack\_a and no shards allocated to hot\_stack\_a or hot\_stack\_b

---

<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: [August 20, 2019, 6:19pm UTC](https://discuss.elastic.co/t/shard-allocation-with-hot-warm-stacks/191890/2 "2019-08-20T18:19:14Z")

</div>

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