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