Clustering in Elasticsearch
ElasticSearch uses multicasting to see if there are other nodes with same cluster name present in the network.If there is such a node it connects to it.It shares it data with it depending upon the shard configuration.
http://www.elasticsearch.org/guide/reference/modules/discovery/zen.html
Read the above to get the full idea