Hi, I just begin using ISM to auto-delete old indices.
My policy
{
"policy_id": "delete_old_index_25d",
"description": "Delete old index older than 25 days.",
"last_updated_time": 1630510660300,
"schema_version": 1,
"error_notification": null,
"default_state": "open",
"states": [
{
"name": "open",
"actions": [],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "25d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": {
"index_patterns": [
"my-index-name-*"
],
"priority": 100,
"last_updated_time": 1630510660300
}
}
I checked the job result and it was
"cause": "failed to process cluster event (delete-index [[my-index-name-2021.08.06/YMF7yT0WTY614TpzBDYSxw]]) within 30s",
My daily index is heavy, it is about almost 3Tb. So whenever I have to delete it, I always put a timeout param for it. Like:
DELETE my-index-name?timeout=60s
But how I can do it in ISM?