ILM phase completed

Hello,

I have one question regarding Index Lifecycle Managment.
My lifecycle policy looks like this:

Policy Details
{
	"policy": {
		"phases": {
			"hot": {
				"min_age": "0ms",
				"actions": {
					"rollover": {
						"max_age": "1d"
					},
					"set_priority": {
						"priority": 100
					}
				}
			},
			"warm": {
				"min_age": "0ms",
				"actions": {
					"allocate": {
						"number_of_replicas": 0,
						"include": {},
						"exclude": {},
						"require": {
							"box_type": "warm"
						}
					},
					"forcemerge": {
						"max_num_segments": 1
					},
					"set_priority": {
						"priority": 50
					}
				}
			},
			"cold": {
				"min_age": "1d",
				"actions": {
					"allocate": {
						"number_of_replicas": 0,
						"include": {},
						"exclude": {},
						"require": {
							"box_type": "cold"
						}
					},
					"set_priority": {
						"priority": 0
					}
				}
			}
		}
	}
}

Everything seems to be working properly, however last phase - cold - is called 'completed'.
Response from the Explain policy request:

{
	"indices": {
		"shrink-interceptor-logs-dev-2019.03.29-000001": {
			"index": "shrink-interceptor-logs-dev-2019.03.29-000001",
			"managed": true,
			"policy": "interceptor-logs-policy",
			"lifecycle_date_millis": 1553949278516,
--> 		"phase": "completed",
			"phase_time_millis": 1554035708556,
			"action": "completed",
			"action_time_millis": 1554035708556,
			"step": "completed",
			"step_time_millis": 1554035708556,
			"phase_execution": {
				"policy": "interceptor-logs-policy",
				"version": 2,
				"modified_date_in_millis": 1553870419803
			}
		}
	}
}

My question: is it working as it should be?
I didnt find anything about differend name of the cold phase in the documentation.
It is not big deal, however index managment view in the Kibana is not working properly in that case: it is not possible to filter out indicies only in the cold phase.

Hi Valker,

Yep, everything appears to be working correctly. When ILM finishes running through all the operations it moves to the completed phase, which is what your index is currently in. That means all actions have been taken and ILM won't be doing anything any more.

Thank you for the reply, Lee.

In that case maybe there should be another value in the "Lifecycle phase" filter - completed.
Also i would be nice to have small notice about this in the documentation :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.