Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What are the Node Roles in modern Elasticsearch clusters?
senior LevelelasticsearchAdvanced Internals
In Simple Words: Separating node roles prevents resource contention at scale:
master(Master-Eligible): Manages cluster state, shard allocation, index creation. Uses low CPU/RAM, zero user queries.data: Stores shard data and executes query/aggregation workloads. Needs fast SSDs and high RAM.ingest: Runs ingestion pipelines (grok parsing, enrich, date transforms) before indexing.coordinating: Acts as a smart load balancer; receives user requests, scatters them to data nodes, and merges responses.