I am confused about creating an ILM policy with roll over when index size goes beyond 190gb.
I have followed below steps to it.
-
Defined ILM policy in elastic search.
PUT _ilm/policy/abcd_foundation_policy
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_size": "190gb",
"max_age": "31d"
},
"set_priority": {
"priority": 100
}
}
},
"delete": {
"min_age": "120d",
"actions": {
"delete": {}
}
}
}
}
} -
defined "abcd_foundation_policy" policy in my index template with roll over alias name.
below is the template settings.
"index_patterns" : [
"abcd_foundation"
],
"settings" : {
"index" : {
"lifecycle" : {
"name" : "abcd_foundation_policy",
"rollover_alias" : "write_abcd_foundation"
},
"mapping" : {
"ignore_malformed" : "true"
},
"number_of_shards" : "6",
"number_of_replicas" : "1"
}
}
I am confused with the next step . can i start pushing data into roll over alias "write_abcd_foundation" as defined in the template? or should I insert data first into a sample index abcd_foundation_00001.
I am also confused with where to define "is_write_index": true property for my roll over alias.
Thanks for help.