This message was deleted.
# community-help
s
This message was deleted.
k
Due to some recent changes necessiated for cross cluster communication, peering address can only be
0.0.0.0
-- (default) so I recommend not setting it explicitly.
do the instructions for HA assume all the processes are running in the same node? i ask because they all seem to use 192.168-based IPs which are all local to a single machine?
No, you could have internal IPs that begin with 192.168 for separate machines as well.
c
i'm a bit stumped here then as to why i can't get this node to identify itself as the leader - it should according to the HA guide:
Copy code
Force one of the nodes to become a single-node cluster by editing its nodes file to contain just its own IP address
k
If you have some older configuration which was using peering address, you should probably stop, clear the data and dir and start fresh as some core configurations could persist and prevent a reset.
c
clear all data? or just one of the folders?
k
State is the only directory that mattera. Other two are populated from state.
c
didn't seem to resolve everything - at this point i'm just starting an empty server
k
Can you post your full config file?
Docker networking is the other variable here.
c
yup, and VM networking. but i've verified those are working because i can ping port 8107 from one VM to the other and get back results that seem correct
here's a curl from one node to port :8107 of the others (and itself)
just verified the curl commands work inside the container too
so they do seem to be talking to each other (i think), it's just the one node talks to another saying "X command is for node 10.0.0.5:8107" and the server responds "yo idk who 10.0.0.5:8107 is, i'm 172.17.0.28107443" (which is a local IP - they're all that specific port funny enough).
hi @Kishore Nallan - any chance the above screenshot gives any insights on what may be up here?
k
Can you post the contents of the nodes file also
Nodes file should not contain
0.0.0.0
-- it should have internal IPs of the nodes in the cluster.
The other suggestion I have is to specify a peering address but given the internal IP. In the screenshots, I see both
10.
and
172.
getting used so I wonder if there are two networks and Typesense is not picking the correct IP for cluster peering.
So give a
--peering-address=10.x.x.x
explicitly.
c
here's the current file - just trying to get the node to identify itself as the leader.
and yes it doesn't seem to recognize 10.0.0.4 as itself
k
Try using the 172.x address
Also delete data directory and start fresh
c
the 172.x address is the same though across my VMs - all of them seem to self-identify is
172.17.0.2:8107
telling them all
--peering-address 172.17.0.2:8107
seems wrong?
here's what happens when i try telling it its IP is 10.0.0.5 though
k
Hmm, sorry I am not familiar with Docker networking enough to help further here.
Does ifconfig list that 10.x IP?
c
ah no worries, i didn't realize that docker was causing the failure to listen to 10.0.0.5
i assumed it was typesense itself.
the fix for docker was simple - i just added a
--network host
argument (not the most security-ideal solution, but works for this case)
k
👍