Hi,
Nomad version - v1.8.1
OS - Freebsd
Im trying to setup Nomad cluster with 3 servers, but it seems that im unable to define node name, and because of that servers have the same “default” node name, which breaks creation of the cluster with an error:
[ERROR] nomad: memberlist: Conflicting address for server.global
[ERROR] nomad: serf: Node name conflicts with another node at 10.2.6.139:4648. Names must be unique! (Resolution enabled: false)
I have tried to set the node name by providing it in server.hcl configuration file like:
name = "my-nomad-server"
I have tried to provide it while starting nomad service, like :
nomad agent -dc=dc1 -node=test01 -server -data-dir /root/nomad-server/ -node=server -config=/root/nomad-server/server.hcl
As based on documentation nomad uses hostname as default value for node name, i also tried to set it, but nothing helps.
Also, if run the nomad server members
, i do get the “default” name value - server.global
What is more interesting, is that im able to change the “region” value of this name, so it would be something like server.<myvalue>
, which would fix this error, but will get me to another issue, where all nodes would be in different regions…
So, did i miss where this “server.global” is set? Should i be overwriting this default value for “server.global” (it should be set somewhere… somewhere in the code for nomad binary? would i need to compile my own version of nomad with overwritten default value for node name?), but then can i get advice where exactly it is (im newbie in GO).
Thank you, and sorry for so much text, tried to be as descriptive as i could.