https://nebula-graph.io logo
Title
s

Sandeep

11/14/2022, 12:26 PM
Hi team. I've got few queries regarding the usage of domains(Instead of hosts IP) in nebula 1. I had setup 3 meta nodes and DNS mapping was made for 3 of the hosts IP to a single domain. When I configured the domain in place of meta-addrs in the conf file, only one of the IPs were mapped as meta and not all three. May I know the reason for this behaviour? 2. In client side, from Java, what is the suggested method to configure graph processes' IPs? As hosts IP may change at times, i thought of having a DNS mapping to the IPs and provide the domains in Java while making connection. Is this method a suggested one? Also, are DNS lookup results cached in the client side and if cached, how frequent they're invalidated and updated in client side? It would be great if you guys share some insights on this matter. Thank you
g

George

11/17/2022, 8:59 AM
If you want to see 3 meta instances in nebula, the problem is that you are using DNS incorrectly. When the three IP addresses are located behind the same domain, only one exact IP address will be obtained for each analysis. In the absence of a specific policy, a domain will only continue to return a specific IP when it is parsed. Therefore you will only get one meta node. Please set different domain names for the 3 meta nodes and record them in the meta config file. Or use 3 meta IP addresses.
❤️ 1
w

wey

11/17/2022, 12:27 PM
@Sandeep we should never do this (n-1 host:ip) for nebulagraph services, inside the cluster the instance of processes are identified with its host:port.
s

Sandeep

11/22/2022, 10:23 AM
Oh Okay. Thanks both for the clarification
🙌 1