So I have made some progress and the "cold" nodes are not receiving data until I try to push data to them. The issue I am in now is that when I followed the referenced link it stated "And the nodes on the warm zone are "tagged" with node.box_type: warm in elasticsearch.yml". I in turn used node.box_type: cold on my cold nodes and node.box_type: hot on my hot nodes. When I used curator the first time I issued the command:
curator --host 10.1.55.2 allocation --rule node_type=cold indices --time-unit days --older-than 30 --timestring '%Y.%m.%d'
Then when I looked at the index setting of one of the indices that were to be move I see :
{
"topbeat-bro-2016.05.02": {
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"node_type": "cold"
}
}
},
"refresh_interval": "5s",
"number_of_shards": "5",
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "hot"
}
}
}
},
"creation_date": "1462147182593",
"number_of_replicas": "1",
"uuid": "GHSu3WilTwm2LT4PySnv2g",
"version": {
"created": "2030199"
}
}
}
}
}
In the first section I see index allocation to node_type: cold and in the section I see allcoaton to box_type: hot. Realizing that I in my elastic config I used the name node.box_type I thought to change the curator command to match:
curator --host 10.1.55.2 allocation --rule node_type=cold indices --time-unit days --older-than 30 --timestring '%Y.%m.%d'
Now my issue is when I get my index setting I see:
{
"topbeat-bro-2016.05.02": {
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "cold",
"node_type": "cold"
}
}
},
"refresh_interval": "5s",
"number_of_shards": "5",
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "hot"
}
}
}
},
"creation_date": "1462147182593",
"number_of_replicas": "1",
"uuid": "GHSu3WilTwm2LT4PySnv2g",
"version": {
"created": "2030199"
}
}
}
}
}
In the first section I see both box_type: cold and node_type: cold. Now I have alot of unassigned shards and when I try to assign them I get he following error:
{"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[MASTER_NODE_1][10.1.55.2:9300][cluster:admin/reroute]"}],"type":"illegal_argument_exception","reason":"[allocate] allocation of [topbeat-bro-2016.05.02][4] on node {WORKER_NODE_10}{oiXjQkMZRRiQyeZTXitc_A}{10.1.55.17}{10.1.55.17:9300}{box_type=hot, master=false} is not allowed, reason: [YES(allocation disabling is ignored)][YES(target node version [2.3.1] is same or newer than source node version [2.3.1])][YES(shard is not allocated to same node or host)][YES(below shard recovery limit of [2])][YES(shard not primary or relocation disabled)][YES(no allocation awareness enabled)][YES(enough disk for shard on node, free: [2.9tb])][YES(primary is already active)][YES(total shard limit disabled: [index: -1, cluster: -1] <= 0)][NO(node does not match index required filters [box_type:\"cold\",node_type:\"cold\"])][YES(allocation disabling is ignored)]"},"status":400}
I may be reading this wrong but it seems to indicate that the node I am trying to allocate these to does not match node_type or box_type cold. How can I rectify this?