ElasticSearch Cluster
What is ElasticSearch Cluster?
Elasticsearch cluster is a group of elastic search nodes that are connected to each other. Standalone instances are good with development and testing, but in a production environment it is recommended to use elasticsearch clusters because there are more advantages than a standalone.
Advantages of Elasticsearch Cluster
What is Node and What is Cluster?
Any time that you start an instance of Elasticsearch, you are starting a node. A collection of connected nodes is called a cluster. If you are running a single node of Elasticsearch, then you have a cluster of one node. Every node in the cluster can handle HTTP and Transport traffic by their default. When it's using the transport layer is used specifically for communication between nodes.
Node types and their roles
Master-eligible node
Data node
Ingest node
Remote-eligible node
Machine learning node
Transform node
ES Cluster Installation
7. Duplicate the directory 2 times and rename as Node-2 and Note-3
8. Edit Duplicated Node-2 and Node-3 files again by updating .yml file
9. Run Elasticsearch for each 3 nodes
10. Run Browser and reach each node using localhost:9201, localhost:9202 and localhost:9203.
Node-1
Node-2
Node-3
Node-1 Elasticsearch view ()
localhost:9201
Node-1 Elasticsearch view
http://localhost:9201/_cat/nodes?h=ip,port,heapPercent,name
Node-2 Elasticsearch view
localhost:9202
Node-2 Elasticsearch view
http://localhost:9202/_cat/nodes?h=ip,port,heapPercent,name
Node-3 Elasticsearch view
localhost:9203
Node-3 Elasticsearch view
http://localhost:9203/_cat/nodes?h=ip,port,heapPercent,name
11. Download Postman and install it!
Postman Testing
Node-1
Node-2
Node-3