Hi,
I'm using the latest version of payara.
I'm running payara inside a docker container in AWS in an EC2 instance.
I want to use Hazelcast so I want both instances to be able to find each other.
This is what I did:
- configure AWS security group in which the instances are running to accept connections on port 4900
- enable hazelcast
- set-hazelcast-configuration --enabled true
- restart payara
- find ip addresses of instances using aws query
- configure tcpip
- set-hazelcast-configuration --dynamic --clustermode tcpip --tcpipmembers <ip1>:4900,<ip2>:4900
I can see in the logs that hazelcast is restarting but get this Exception:
java.lang.IllegalArgumentException: Target is this node! -> [172.18.0.5]:4900
It simply doesn't work.
What am I doing wrong?
regards, Hans