Hi, I'm preparing for the Elastic certification and I have a dilemma regarding ILM policy. If the task in the exam were, for example, to set the warm phase to 7d, cold to 14d, etc., how should this be solved correctly? Since the time in a phase is calculated from the rollover, does the exam expect this time to be set directly (i.e. warm: 7d, etc.), or does it need to be subtracted — for example, if rollover is 3d, would the warm phase then be set to 4d? This would only work if we're considering days, though — if we also take into account a condition like 5GB, it wouldn't work that way. Can anyone confirm how the exam considers the correct solution? Thank you.
Hello @Marek_Galbavy
If you are aware about the ILM basics it should not be that tricky.
An example move to warm phase after 2 days after staying 3 days in warm, move to cold phase , move to delete after x days
"Move to warm phase after 2 days" → direct offset from rollover → warm.min_age = 2d
"After staying 3 days in warm" → duration spent in the previous phase → add to warm's min_age → cold.min_age = 2d + 3d = 5d
Thanks!!
I have the basics down, of course, it's just a bit tricky, so I wanted to make sure how it's meant regarding certification questions. Your example, in my opinion, isn't precise. "Move to warm phase after 2 days" → direct offset from rollover → warm.min_age = 2d — this holds if it's counted from the rollover. But if you understand the question as "move to warm phase after two days since the index was created," then your example doesn't hold. Because the index is in the hot phase until rollover, and only then does the min_age timer start counting from 0. So it would have to be 2d minus the rollover time.
Hello @Marek_Galbavy
Yes , it was from rollover & in the exam question it will be shared clearly like from the rollover point. So in that case it should not be that difficult. I had given the exam & question will be very clear so you should be good.
All the best.
Thanks!!