My Policy is supposed to roll over indices if size reaches to 500mb like below:
GET _ilm/policy/my-policy
{
"my-policy" : {
"version" : 4,
"modified_date" : "2021-03-31T14:34:45.932Z",
"policy" : {
"phases" : {
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "500mb",
"max_age" : "1h"
}
}
},
"delete" : {
"min_age" : "1h",
"actions" : {
"delete" : { }
}
}
}
}
}
}
But observed indices are rolling over after reaching over 2GB.
Whats wrong with my config?