# Index status going to RED After I create index with this setting "index.routing.allocation.require.box\_type": "hot"

**URL:** https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583
**Category:** Elasticsearch
**Created:** [May 10, 2019, 3:23pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583 "2019-05-10T15:23:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![chandukreddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandukreddi/32/29241_2.png) [@chandukreddi](https://discuss.elastic.co/u/chandukreddi)
#### Post date: [May 10, 2019, 3:23pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/1 "2019-05-10T15:23:22Z")

</div>

Hello Team,

I have 2 node cluster and one node is HOT and another node WARM.

Help me to understand why index status changing to RED when I use setting "index.routing.allocation.require.box\_type": "hot"

Index creation script:

PUT /%3Cswift-proxy-logs-%7Bnow%2Fd%7D-1%3E  
{  
"settings": {  
"number\_of\_replicas": 0,  
"index.routing.allocation.require.box\_type":"hot"  
},  
"aliases": {  
"swift\_proxy\_log\_write\_alias": {  
"is\_write\_index": true  
}  
}  
}

[2019-05-10T08:14:30,630][INFO][o.e.c.m.MetaDataCreateIndexService] [elk-1] [swift-proxy-logs-2019.05.10-1] creating index, cause [api], templates , shards [5]/[0], mappings   
[2019-05-10T08:14:30,633][INFO][o.e.c.r.a.AllocationService] [elk-1] Cluster health status changed from [YELLOW] to [**RED**] (reason: [index [swift-proxy-logs-2019.05.10-1] created]).

with out setting "index.routing.allocation.require.box\_type": "hot" it works perfect.

PUT /%3Cswift-proxy-logs-%7Bnow%2Fd%7D-1%3E  
{  
"settings": {  
"number\_of\_replicas": 0  
},  
"aliases": {  
"swift\_proxy\_log\_write\_alias": {  
"is\_write\_index": true  
}  
}  
}

[2019-05-10T08:17:04,201][INFO][o.e.c.m.MetaDataCreateIndexService] [elk-1] [swift-proxy-logs-2019.05.10-1] creating index, cause [api], templates , shards [5]/[0], mappings   
[2019-05-10T08:17:04,345][INFO][o.e.c.r.a.AllocationService] [elk-1] Cluster health status changed from [YELLOW] to [**GREEN**] (reason: [shards started [[swift-proxy-logs-2019.05.10-1][1], [swift-proxy-logs-2019.05.10-1][4], [swift-proxy-logs-2019.05.10-1][2], [swift-proxy-logs-2019.05.10-1][0]] ...]).

I really appreciate your help!

Thanks  
Chandra

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 10, 2019, 3:41pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/2 "2019-05-10T15:41:33Z")

</div>

Do you have an attribute named `box_type` set to `hot` in your Elasticsearch configuration? [This post](https://discuss.elastic.co/t/data-writing-into-warm-nodes-along-with-hot-nodes/180444) indicates the attribute may be named `data` and not `box_type`.

---

<div class="post-metadata">

### Author: ![chandukreddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandukreddi/32/29241_2.png) [@chandukreddi](https://discuss.elastic.co/u/chandukreddi)
#### Post date: [May 10, 2019, 4:19pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/3 "2019-05-10T16:19:13Z")

</div>

@Christian_Dahlqvist, your right I have attribute data not box\_type.

Is this static or dynamic parameter? Can I change now?

```
 "name" : "elk-1",
  "transport_address" : "10.1.28.175:9300",
  "host" : "10.1.28.175",
  "ip" : "10.1.28.175",
  "version" : "6.7.1",
  "build_flavor" : "oss",
  "build_type" : "tar",
  "build_hash" : "2f32220",
  "total_indexing_buffer" : 421645516,
  "roles" : [
    "master",
    "data",
    "ingest"
  ],
  "attributes" : {
    "data" : "hot"
  },
  "settings" : {
    "cluster" : {
      "name" : "elk-test"
    },
    "node" : {
      "attr" : {
        "data" : "hot"
      },
      "name" : "elk-1"
    },
    "path" : {
      "data" : [
        "/opt/data/elastic",
        "/home/elk/opt1/data/elastic_1"
      ],
      "logs" : "/opt/data/logs/elastic",
      "home" : "/opt/elasticsearch"

```

Thanks  
Chandra

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 12, 2019, 7:07am UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/4 "2019-05-12T07:07:03Z")

</div>

> [@chandukreddi](#):
>
> "index.routing.allocation.require.box\_type":"hot"

Why not change `box_type` to `data` in your template?

```auto
"index.routing.allocation.require.data":"hot"

```

---

<div class="post-metadata">

### Author: ![chandukreddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandukreddi/32/29241_2.png) [@chandukreddi](https://discuss.elastic.co/u/chandukreddi)
#### Post date: [May 16, 2019, 3:55pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/5 "2019-05-16T15:55:15Z")

</div>

I can do that.. will let you know once I made that change.

Thanks  
Chandra

---

<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: [June 13, 2019, 3:55pm UTC](https://discuss.elastic.co/t/index-status-going-to-red-after-i-create-index-with-this-setting-index-routing-allocation-require-box-type-hot/180583/6 "2019-06-13T15:55:28Z")

</div>

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