Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What is Index Lifecycle Management (ILM) and how do its 5 phases work?
senior LevelMost AskedLifecycle
In Simple Words: ILM automates the aging of indices across hardware tiers to minimize infrastructure cost:
- Hot: Active write and read traffic on high-performance NVMe SSDs.
- Warm: No new writes; query traffic continues on cheaper SSDs. Merges segments to 1 segment (
_forcemerge). - Cold: Infrequent queries; stored on cheap magnetic disks or backed by searchable snapshots in S3.
- Frozen: Archival data searched rarely using searchable object storage.
- Delete: Automatically deletes indices older than N days/months.