-
Notifications
You must be signed in to change notification settings - Fork 115
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
Servers with Ip address are not communicating #149
Comments
What is your network card IP address? Is it the same as IP address of a domain |
I uploaded possible fix. Try to use a fresh version from github:
|
@bakwc Yes, the network card IP address is same as the domain. OS servers are alpine linux. Is it possible to release on PyPI. |
Then probably fix won't work. Everything looks fine. Please try to use IP addresses instead of hostname. If won't help - you can give me access to your machines so I look myself. |
I am using IP address instead of domain name. I am getting the ip address using socket.gethostbyname(domain name). will the fix work, If I pass IP address ? |
I am running on kubernetes using statefulset. Still it's not working on giving the IP address. The servers are able to communicate each other for sure as I have tested the telnet and ping command. |
On server B: I am doing telnet command to see if they are accepting connections on server A are not.
On Server A:
This is how I am passing current and partner hosts. CurrentHost Port: 172.20.3.225:5000 I see the servers are not communication with syncObj code and always the Leader is None @bakwc can you please look into this issue ?. |
|
I am using IPv4 only. I tested out by connecting using socket programming
It is able to create the connection successfully. Here is how I am passing current host and partner host values to syncObj class. But the same setup works on localhost but not on remoteIP, where it says leader is None. Can you please look into this at your earliest convenience. |
@bakwc I have logged the information of the connections on the syncObj connections. will this be helpful in debugging ?
let me know if you need any other logging information. |
Lets say I have serverA with test-0.domain.com:5000 and server B with test-1.domain.com:5000 and server C with test-2.domain.com:5000
The test-0.domain.com,test-1.domain.com,test-2.domain.com addresses are same as ifconfig address on respective servers.
On server A
On server B
On server C
Now I started the above code on three servers A, B, C and trying to print the leader. But it says leader is None.
@bakwc or Can someone help, on how to resolve this issue ?
The text was updated successfully, but these errors were encountered: