Elasticsearch 2.4.3
I have six data nodes, three marked as hot and three as warm. The cluster is setup to have 1 replica. By default incoming data is distributed correctly between the six nodes with replicas. If I apply the following global template to allocate to hot nodes only, then only the primary shards are allocated to the hot nodes and the replica shards remain unassigned.
PUT /_template/global_settings_allocation
{
"order": -1,
"template": "*",
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "hot"
}
}
}
}
},
"mappings": {},
"aliases": {}
}
Is there something more to be done here?