How Elasticsearch cluster works

This post is part of a series covering the architecture of Elasticsearch based on my experience while working with it. In this post, we’ll be discussing how the cluster works, try to find answers for following questions:

  • How a node in cluster talks to others?
  • What happens when a node joins or leaves the cluster?
  • What happens when a node stops or has encountered a problem?