Nomad#

Resources#

Miscellaneous commands #

nomad server-members#

[root@ip-172-31-22-13 logs]# nomad server-members
Name                                                  Addr          Port  Status  Proto  Build  DC    Region
ip-172-31-22-13.eu-central-1.compute.internal.global  172.31.22.13  4648  alive   2      0.2.3  Best  global
ip-172-31-29-38.global                                172.31.29.38  4648  alive   2      0.2.3  Best  global
ip-172-31-29-39.global                                172.31.29.39  4648  alive   2      0.2.3  Best  global

nomad node-status#

[root@ip-172-31-22-13 logs]# nomad node-status
ID                                    DC      Name              Class   Drain  Status
0030d4f7-c0ae-5f48-3c01-3939eade8a42  Boxtel  ip-172-31-18-153  <none>  false  ready
8718fa79-f468-9bd8-117b-ce87403920b4  Best    ip-172-31-30-25   <none>  false  ready
a90f5ffb-334a-b9f7-105f-ce078b181098  Best    ip-172-31-30-24   <none>  true   down
ccb36d24-4681-326c-b08e-42aa56a4bf67  Best    ip-172-31-29-208  <none>  false  ready

nomad validate#

[ec2-user@ip-172-31-22-13 jobs]$ nomad validate SimpleHTTPServer.nomad 
Job validation successful

nomad run#

[ec2-user@ip-172-31-22-13 jobs]$ nomad run SimpleHTTPServer.nomad 
==> Monitoring evaluation "edfc16cd-0a57-edaf-472b-a42ea346407f"
    Evaluation triggered by job "SimpleHTTPServer"
    Allocation "a51dec6c-7416-fc09-037c-6cc617136209" created: node "0030d4f7-c0ae-5f48-3c01-3939eade8a42", group "cache"
    Evaluation status changed: "pending" -> "complete"
==> Evaluation "edfc16cd-0a57-edaf-472b-a42ea346407f" finished with status "complete"

nomad status#

[ec2-user@ip-172-31-22-13 jobs]$ nomad status
ID                Type     Priority  Status
SimpleHTTPServer  service  50        <none>

[ec2-user@ip-172-31-22-13 jobs]$ nomad status -short SimpleHTTPServer
ID          = SimpleHTTPServer
Name        = SimpleHTTPServer
Type        = service
Priority    = 50
Datacenters = Boxtel
Status      = <none>

[ec2-user@ip-172-31-22-13 jobs]$ nomad status SimpleHTTPServer
ID          = SimpleHTTPServer
Name        = SimpleHTTPServer
Type        = service
Priority    = 50
Datacenters = Boxtel
Status      = <none>

==> Evaluations
ID                                    Priority  TriggeredBy   Status
edfc16cd-0a57-edaf-472b-a42ea346407f  50        job-register  complete

==> Allocations
ID                                    EvalID                                NodeID                                TaskGroup  Desired  Status
a51dec6c-7416-fc09-037c-6cc617136209  edfc16cd-0a57-edaf-472b-a42ea346407f  0030d4f7-c0ae-5f48-3c01-3939eade8a42  cache      run      failed