我是 Nomad 的新手。我们在生产中同时使用 Nomad 和 Docker、Consul、Vault、Ansible。当我从本地机器运行 Nomad 作业时,作业注册成功,但显示状态为已终止。
Roadrunner-2:nomad Shailesh$ nomad run -detach -address=http://nomad.example-private.com:4646 production/router.hcl
Job registration successful
Evaluation ID: c9e77cb5-ef69-1c63-e926-f131b331d800
当我做游牧民族的时候
Roadrunner-2:nomad Shailesh$ nomad status
ID Type Priority Status
metrics system 50 running
registry service 50 running
router system 50 dead
特别是当我检查工作状态时,它会出现错误。
Roadrunner-2:nomad Shailesh$ nomad status router
ID = router
Name = router
Type = system
Priority = 50
Datacenters = us-east-1
Status = dead
Periodic = false
Error querying job summary: Unexpected response code: 404 (job not found)
我将非常感激您对上述故障排除的任何指导。谢谢
答案1
您是否尝试验证您的工作是否成功?$nomad eval-status c9e77cb5-ef69-1c63-e926-f131b331d800(your_eval_id)