-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[discovery] Issue on connecting to HZ cluster started from Docker #9978
Comments
Hi @dsukhoroslov , Can you please check that comment and see if it is helpful for you? The problem is that if you don't set public address of the instance launched as docker container, hazelcast-client smart routing will fetch the member list from the member it first connects but that gives a list of unreachable IP addresses i.e. 172.17.0.x |
192.168.99.100 may work for me. Thank you @mesutcelik, I'll try |
check #9963 |
Hi @Fabryprog, |
The root causes of these docker issues are:
The connection checks can be disabled but the connection still won't be established because of an another issue: #11256 Please check out the new SPI: Please create a new issue or reopen this one if this does not suit your use case. |
Starting work on https://github.com/bitsofinfo/hazelcast-docker-swarm-discovery-spi 1.0-RC4 which will integrate this new |
HZ 3.8. I'm preparing Docker image for my app which is build on top oh HZ. When I start one server node from my Docker image then I can connect to it from java test app strted on my host machine via exposed ip:port (192.168.99.100:10500) with no issues. But, when I start two Docker nodes then it does not work any more. The nodes are discovered each other by multicast and form a cluster on internal Docker network:
The nodes are exposed as
192.168.99.100:10500
and192.168.99.100:10501
outside. Now when I start client app, initially it connects to one of the nodes, this is the node log:but then the client hangs for 2 min and throws exception after that:
Sure, the ip 172.17.0.3 is not exposed outside and not accessible from my host. But how client got this ip at all? Looks like it got this info from the server side after initial connect. The client has
smart-routing
set to `true'. As I said, there are no issues when I connect to one single node with the same client/server apps.Please have a look.
Thanks, Denis.
The text was updated successfully, but these errors were encountered: