When a member is started in a cluster, it will dynamically and automatically be discovered. There are four types of discovery:
- Multicast discovery: members in a cluster discover each other by multicast, by default.
- Discovery by TCP/IP: the first member created in the cluster (leader) will form a list of IP addresses of other joining members and will send this list to these members so the members will know each other.
- If your application is placed on Amazon EC2, Hazelcast has an automatic discovery mechanism. You will give your Amazon credentials and the joining member will be discovered automatically.
Once members are discovered, all the communication between them will be via TCP/IP.
- Hazelcast members and native clients support jclouds® for discovery. It is useful when you do not want to provide or you cannot provide the list of possible IP addresses on various cloud providers. This discovery feature is provided as a Hazelcast plugin.
Please refer to the Setting Up Clusters section in the docs for detailed information.