Last active
January 8, 2021 20:31
-
-
Save mmastoras/72fecdcd137ec5e00dbfe9b09d8977d6 to your computer and use it in GitHub Desktop.
Nomad Debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get status of a job | |
$ nomad job status -no-color kafka-broker | |
ID = kafka-broker | |
Name = kafka-broker | |
Submit Date = 2019-07-24T14:03:41-07:00 | |
Type = service | |
Priority = 50 | |
Datacenters = alpha | |
Status = dead | |
Periodic = false | |
Parameterized = false | |
Summary | |
Task Group Queued Starting Running Failed Complete Lost | |
kafka-broker 0 0 0 3 0 0 | |
Latest Deployment | |
ID = 009b5f8a | |
Status = failed | |
Description = Failed due to progress deadline | |
Deployed | |
Task Group Desired Placed Healthy Unhealthy Progress Deadline | |
kafka-broker 3 3 0 3 2019-07-24T16:13:41-05:00 | |
Allocations | |
ID Node ID Task Group Version Desired Status Created Modified | |
45d9e852 a906702e kafka-broker 0 run failed 28m55s ago 28m51s ago | |
9502334e 1c2a7729 kafka-broker 0 run failed 28m55s ago 28m51s ago | |
f84a57c9 4e16adad kafka-broker 0 run failed 28m55s ago 28m51s ago | |
# check status of allocation | |
$ nomad alloc status 45d9e852 | |
ID = 45d9e852 | |
Eval ID = bad01cfb | |
Name = kafka-broker.kafka-broker[0] | |
Node ID = a906702e | |
Node Name = ip-10-102-45-178.roblox.local | |
Job ID = kafka-broker | |
Job Version = 0 | |
Client Status = failed | |
Client Description = Failed tasks | |
Desired Status = run | |
Desired Description = <none> | |
Created = 29m14s ago | |
Modified = 29m10s ago | |
Deployment ID = 009b5f8a | |
Deployment Health = unhealthy | |
Task "kafka" is "dead" | |
Task Resources | |
CPU Memory Disk Addresses | |
100 MHz 128 MiB 300 MiB kafka_port: 10.102.45.178:27420 | |
Task Events: | |
Started At = N/A | |
Finished At = 2019-07-24T21:03:41Z | |
Total Restarts = 0 | |
Last Restart = N/A | |
Recent Events: | |
Time Type Description | |
2019-07-24T14:03:43-07:00 Killing Sent interrupt | |
2019-07-24T14:03:41-07:00 Alloc Unhealthy Unhealthy because of failed task | |
2019-07-24T14:03:41-07:00 Killing Template failed: (dynamic): parse: template: :1: unexpected "\\" in operand | |
2019-07-24T14:03:41-07:00 Task Setup Building Task Directory | |
2019-07-24T14:03:41-07:00 Received Task received by client | |
# more verbose status of job | |
$ nomad job status -verbose -evals kafka-broke | |
# exec into an allocation | |
$ nomad alloc exec -tls-skip-verify 58378b94 /bin/bash | |
# exec into a specific task within the allocation | |
# nomad alloc exec -task <task name> -tls-skip-verify <alloc id> /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment