# Cluster-Default index allocation box?

**URL:** <https://discuss.elastic.co/t/cluster-default-index-allocation-box/72839>\
**Category:** Elasticsearch\
**Created:** [January 26, 2017, 12:06am UTC](https://discuss.elastic.co/t/cluster-default-index-allocation-box/72839 "2017-01-26T00:06:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![no\_jihun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_jihun/32/64028_2.png) [@no\_jihun](https://discuss.elastic.co/u/no_jihun)\
**Post date:** [January 26, 2017, 12:06am UTC](https://discuss.elastic.co/t/cluster-default-index-allocation-box/72839/1 "2017-01-26T00:06:14Z")

</div>

Hello.

Is there a way to have cluster-default index allocation box settings?

I mean,  
There are many indices(ON SSD backed nodes) and some templates.  
Some indices were created with index template, but others not.

Now,  
I want to have hot-warm architecture

> **[“Hot-Warm” architecture
	  	 | Elastic](https://www.elastic.co/blog/hot-warm-architecture)**
>
> The current blog applies to Elasticsearch versions 1.x and 2.x. If you are looking for “Hot-Warm” Architecture in Elasticsearch 5.x click here. When using Elasticsearch for larger time-data analytics ...

  
So, prepared a few warm(SATA) nodes.

In this case,  
I just want to every new indices allocated to hot(SSD) nodes.  
Box type definition is belong to index or index templates settings.  
If some index created with no template It can be allocated to warm(DATA) nodes, I think.  
Is this right?

Or is there any simple way to let every indices allocated SSD without index templates?

---

<div class="post-metadata">

**Author:** ![no\_jihun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_jihun/32/64028_2.png) [@no\_jihun](https://discuss.elastic.co/u/no_jihun)\
**Post date:** [January 27, 2017, 8:57am UTC](https://discuss.elastic.co/t/cluster-default-index-allocation-box/72839/2 "2017-01-27T08:57:17Z")

</div>

I found the answer myself.

No matter what various templates or indices exists,  
We can make every new index allocated to 'hot' nodes by adding a template like below.  
if a new index matches multiple templates, templates' will be merged then used for new index setting.

```
PUT /_template/global_settings_allocation
{
  "order": -1, // <-- negative value to ensure this templates wins for all.
  "template": "*", // <-- every indices matches
  "settings": {
    "index": {
      "routing": {
        "allocation": {
          "require": {
            "box_type": "box_hot" // <-- give initial box tag
          }
        }
      }
    }
  }
}
```

---

<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:** [February 24, 2017, 8:58am UTC](https://discuss.elastic.co/t/cluster-default-index-allocation-box/72839/3 "2017-02-24T08:58:05Z")

</div>

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