# Index.routing.allocation.require realloc not working

**URL:** https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802
**Category:** Elasticsearch
**Created:** [January 21, 2016, 4:51pm UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802 "2016-01-21T16:51:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Alexandre\_Derumier](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexandre\_Derumier](https://discuss.elastic.co/u/Alexandre_Derumier)
#### Post date: [January 21, 2016, 4:51pm UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/1 "2016-01-21T16:51:08Z")

</div>

Hi,  
I'm trying to implement an hot-warm architecture like this blog:

> **[“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 ...

I have a 3 nodes cluster, all nodes are master and datas nodes.  
with 1 replica and 6 shards

2 nodes have box\_type = hot  
node:  
box\_type: hot  
data: true  
master: true  
name: hotnode1 (and 2)

index:  
codec: best\_compression  
number\_of\_replicas: 1  
number\_of\_shards: 6

1 node have box\_type = cold

node:  
box\_type: cold  
data: true  
name: coldnode1

index:  
codec: best\_compression  
number\_of\_replicas: 1  
number\_of\_shards: 6

setting require.box\_type to hot (so all shards should move to hotnode1,hotnode2)

# curl -XPUT "[http://elastic1:9200/palo-firewall-2016.01.21/\_settings](http://elastic1:9200/palo-firewall-2016.01.21/_settings)" -d'

{  
"index.routing.allocation.require.box\_type":"hot"  
}'  
{"acknowledged":true

verify indice settings

GET elastic1:9200/palo-firewall-2016.01.21/\_settings?pretty.01.21/\_settings" -d'  
{  
"palo-firewall-2016.01.21" : {  
"settings" : {  
"index" : {  
"routing" : {  
"allocation" : {  
"require" : {  
"box\_type" : "hot"  
}  
}  
},  
"creation\_date" : "1453394476424",  
"number\_of\_shards" : "6",  
"number\_of\_replicas" : "1",  
"uuid" : "cNyk594NTW-0O9OkHMvF1g",  
"version" : {  
"created" : "2010199"  
}  
}  
}  
}  
}

shards list:  
curl -XGET '[http://hotnode1:9200/\_cat/shards](http://hotnode1:9200/_cat/shards)'

palo-firewall-2016.01.21 2 p STARTED 162 264kb X.X.X.X coldnode1  
palo-firewall-2016.01.21 3 r STARTED 165 354.1kb X.X.X.X hotnode1  
palo-firewall-2016.01.21 3 p STARTED 165 494.9kb X.X.X.X coldnode1  
palo-firewall-2016.01.21 1 r STARTED 181 307kb X.X.X.X hotnode1  
palo-firewall-2016.01.21 1 p STARTED 181 321.3kb X.X.X.X coldnode1  
palo-firewall-2016.01.21 5 p STARTED 156 166kb X.X.X.X hotnode2  
palo-firewall-2016.01.21 5 r STARTED 156 166kb X.X.X.X coldnode1  
palo-firewall-2016.01.21 4 r STARTED 162 245.5kb X.X.X.X hotnode2  
palo-firewall-2016.01.21 4 p STARTED 162 245.5kb X.X.X.X coldnode1  
palo-firewall-2016.01.21 0 r STARTED 166 185.4kb X.X.X.X hotnode2  
palo-firewall-2016.01.21 0 p STARTED 166 205.7kb X.X.X.X coldnode1

How can I debug reallocation ? I don't see anything is logs.

---

<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: [January 22, 2016, 4:06am UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/2 "2016-01-22T04:06:35Z")

</div>

What does the rest of your ES config look like?

Also, you have too many shards, for the data size you have there 1 primary is more than enough.

---

<div class="post-metadata">

### Author: ![Alexandre\_Derumier](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexandre\_Derumier](https://discuss.elastic.co/u/Alexandre_Derumier)
#### Post date: [January 22, 2016, 6:49am UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/3 "2016-01-22T06:49:55Z")

</div>

> > What does the rest of your ES config look like?

## hotnode1

cluster:  
name: elastic  
discovery:  
zen:  
ping:  
multicast:  
enabled: false  
unicast:  
hosts:  
- [hotnode1.domain.com](http://hotnode1.domain.com)  
- [hotnode2.domain.com](http://hotnode2.domain.com)  
- [coldnode1.domain.com](http://coldnode1.domain.com)  
index:  
codec: best\_compression  
number\_of\_replicas: 1  
number\_of\_shards: 6  
network:  
host: _non\_loopback:ipv4_  
node:  
box\_type: hot  
data: true  
master: true  
name: hotnode1  
path:  
data: /mnt/disk1

## hotnode2

## hotnode1

cluster:  
name: elastic  
discovery:  
zen:  
ping:  
multicast:  
enabled: false  
unicast:  
hosts:  
- [hotnode1.domain.com](http://hotnode1.domain.com)  
- [hotnode2.domain.com](http://hotnode2.domain.com)  
- [coldnode1.domain.com](http://coldnode1.domain.com)  
index:  
codec: best\_compression  
number\_of\_replicas: 1  
number\_of\_shards: 6  
network:  
host: _non\_loopback:ipv4_  
node:  
box\_type: hot  
data: true  
master: true  
name: hotnode2  
path:  
data: /mnt/disk1

## coldnode1

cluster:  
name: elastichosting  
discovery:  
zen:  
ping:  
multicast:  
enabled: false  
unicast:  
hosts:  
- [hotnode1.domain.com](http://hotnode1.domain.com)  
- [hotnode2.domain.com](http://hotnode2.domain.com)  
-coldnode1.odiso.com  
index:  
codec: best\_compression  
number\_of\_replicas: 1  
number\_of\_shards: 6  
network:  
host: 10.3.94.74  
node:  
box\_type: cold  
data: true  
master: true  
name: coldnode1  
path:  
data: /archive/elasticsearch

> > Also, you have too many shards, for the data size you have there 1 primary is more than enough.

Well, this was with a demo indice, but I have currently 50GB indices by day.  
I'm using 6shards, because in the future, I'll use more ssd disks. (up to 6disk by node, so shards will split across disks for better throughput).

---

<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: [January 22, 2016, 7:01am UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/4 "2016-01-22T07:01:07Z")

</div>

> [@Alexandre\_Derumier](#):
>
> Well, this was with a demo indice, but I have currently 50GB indices by day.I'm using 6shards, because in the future, I'll use more ssd disks. (up to 6disk by node, so shards will split across disks for better throughput).

That's still too many, you will end up wasting heap, when SSDs are fast enough.

---

<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: [January 22, 2016, 8:32am UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/5 "2016-01-22T08:32:39Z")

</div>

A Hot/Warm architecture does not really make sense for a 3 node cluster. As your Warm/Cold zone only have 1 node, you do not have any place to put the replica shard you have configured once your indices are relocated to the Warm/Cold zone.

---

<div class="post-metadata">

### Author: ![Alexandre\_Derumier](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexandre\_Derumier](https://discuss.elastic.co/u/Alexandre_Derumier)
#### Post date: [January 23, 2016, 11:38am UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/6 "2016-01-23T11:38:36Z")

</div>

The cold node use a big raid6 for archiving,  
the 2 hot nodes don't have any raid. (job ssd)

I was planing to delete the replica once the indice is move to cold node.  
But even with that, the index.routing still not working.

Is they any way to have some debug log ?

---

<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 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/index-routing-allocation-require-realloc-not-working/39802/7 "2017-07-05T23:22:11Z")

</div>


