Kingindanord
Kingindanord

Reputation: 2036

Can't find Nomad clients in the Nomad UI

Can't find Nomad client, but I can see all servers and I also can find the clients in Consul.

Nomad config

data_dir = "/opt/nomad/data"

server {
  enabled          = true
  bootstrap_expect = 3
  retry_join = ["provider=aws tag_key=Function tag_value=consul_client"]

}

client {
  enabled = true
}

Clients in Consul UI:

enter image description here


Servers in Nomad UI:

enter image description here

Clients in Nomad UI:

enter image description here

So why do I see only one Client in the last screenshot?

Upvotes: 1

Views: 551

Answers (3)

Dev pokhariya
Dev pokhariya

Reputation: 346

The Nomad client config should not have

server {
  enabled          = true # this should be false
}

By making different different config for server as well as client will resolve this issue

working client stanza will look like this

   client {
      enabled = true
      network_interface   = "eth0" # not mendatory
      network_speed = "10000" # not mendatory
      node_class = "abc" # not mendatory
      servers = ["host1","host2","host3"]
   }

Upvotes: 0

blamb
blamb

Reputation: 4299

check the advertise ips on the nomad config file, to make sure they are updated to the correct ip address, e.g. for missing client @10.183.141.53

advertise {
    http = "10.18.41.53:4646"
    rpc = "10.18.41.53:4647"
    serf = "10.18.41.53:4648"
}

Upvotes: 0

Kingindanord
Kingindanord

Reputation: 2036

figured it out, I should make separate config files for server and client instead of combining them together.

Upvotes: 2

Related Questions