current policy
{
“_id” : “logstash”,
“_version” : 51,
“_seq_no” : 132,
“_primary_term” : 2,
“policy” : {
“policy_id” : “logstash”,
“description” : “hot warm delete workflow”,
“last_updated_time” : 1611345959927,
“schema_version” : 1,
“error_notification” : null,
“default_state” : “hot”,
“states” : [
{
“name” : “hot”,
“actions” : [
{
“rollover” : {
“min_size” : “160gb”,
“min_index_age” : “5d”
}
}
],
“transitions” : [
{
“state_name” : “warm”,
“conditions” : {
“min_index_age” : “7d”
}
}
]
},
{
“name” : “warm”,
“actions” : [
{
“read_only” : { }
}
],
“transitions” : [
{
“state_name” : “ultrawarm”,
“conditions” : {
“cron” : {
“cron” : {
“expression” : “* 1-6 * * *”,
“timezone” : “America/New_York”
}
}
}
}
]
},
{
“name” : “ultrawarm”,
“actions” : [
{
“timeout” : “24h”,
“retry” : {
“count” : 5,
“backoff” : “exponential”,
“delay” : “1h”
},
“warm_migration” : { }
}
],
“transitions” : [
{
“state_name” : “delete”,
“conditions” : {
“min_index_age” : “40d”
}
}
]
},
{
“name” : “delete”,
“actions” : [
{
“delete” : { }
}
],
“transitions” :
}
]
}
}
i added warm step to add the cron condition, previously it just had hot, ultrawarm and delete.
it seems policy seq num on the index got updated to latest policy seq num. i guess it might just be timing which wasn’t obvious from the docs. i was expecting the ism policy seq num to be updated to lastest as soon as i try to run change_policy API. Your explanation makes sense now on why that’s happening.
thanks for explanation. i will check if ism is really waiting for off peak hours to migrate to ultra warm. if that does happen its a win.