Hello,
While looking at Hazelcast Client configuration, I didn't find a proper solution for my problem.
First, let me explain my context & problem.
I set up a cluster of several nodes/members inside a Cloud-Foundry space.
By using internal IPs, each member could see & connect to each other. So far, so good...
I wanted to connect external clients but Cloudfoundry only presents one unique external IP:port for TCP
this external IP:port is mapped to my cluster members through a TCP load-balancer using round-robin for each new connection.
(so for each new connection, it will target to another cluster member)
According to my tests, if I set the unique "external IP:port" in the adresses of my client conf. The client only connects to one cluster member...
Does someone know how I could say to the client : please use this extIP:port for first connection. Get the list of members and open a new connection with the same address until you're connected to another member (at least one).
I took a look to Hazelcast client source code (especially com.hazelcast.client.connection.AddressProvider) but I'm a bit lost.
Any help/idea/clue will be appreciated.
Thanks in advance for having read my full story.
Regards,
Julien