hazelcast-IMDG clustering with multiple instances

how to run two hazelcast instances in two different machines within a same cluster.? can someone please help me

this is my configuration here

i want to know how we can configure multicast and tcp in network element for testing High availability. i tried searching in many articles but could not find any relevant configuration

1 answer

  • answered 2020-08-10 19:42 Rafał Leszko

    If you have two machines, with static IPs, then the simplest way is to use the TCP/IP configuration.

    Assuming the IP addresses or your machines are: 1.2.3.4 and 5.6.7.8 and you use the default Hazelcast port 5701, you should have the following configuration:

    <multicast enabled="false" />
    <tcp-ip enabled="true">
        <member-list>
            <member>1.2.3.4</member>
            <member>5.6.7.8</member>
        </member-list>
    </tcp-ip>