Payara/Hazelcast on AWS

35 views
Skip to first unread message

Hans Pikkemaat

unread,
Oct 2, 2021, 12:28:53 PM10/2/21
to Hazelcast
Hi,

Payara supports Hazelcast which then acts as L2 cache for JPA.
Payara can be configured with the ip addresses of the Hazelcast nodes (so the payara servers) and these IP addresses will form the hazelcast cluster.

See here an example how this works.


Now I'm trying to run this setup in AWS on EC2 instances. I however cannot get it to work.
The payara servers are running in docker on EC2 instances so I'm querying AWS to find the EC2 instance IP addresses which I then use to configure hazelcast in payara.

I configured docker to listen to port 4900 such that the EC2 instances can connect to each others hazelcast nodes. I also verified that both instances can connect to that port.

As I said hazelcast does not build the cluster. I see this exception in the logs

java.lang.IllegalArgumentException: Target is this node! -> [172.18.0.5]:4900

Does anyone have experience with hazelcast in payara in docker on EC2 in AWS?

Regards,

Hans


Reply all
Reply to author
Forward
0 new messages