Skip to content

Instantly share code, notes, and snippets.

@hobochili
hobochili / gist:762f8ebade8288a7322f81ab7931cf1d
Created October 11, 2017 21:19
Nomad auto_revert failure server logs
2017/10/11 21:18:10.529927 [DEBUG] http: Request /v1/jobs?region=global (830.125µs)
2017/10/11 21:18:10.530330 [DEBUG] worker: dequeued evaluation 3dea4483-f550-1d1a-a052-253472757fa3
2017/10/11 21:18:10.531010 [DEBUG] http: Request /v1/evaluation/3dea4483-f550-1d1a-a052-253472757fa3?region=global (142.696µs)
2017/10/11 21:18:10.531025 [DEBUG] sched: <Eval "3dea4483-f550-1d1a-a052-253472757fa3" JobID: "test" Namespace: "default">: Total changes: (place 1) (destructive 0) (inplace 0) (stop 1)
Created Deployment: "1b0f1af6-1911-adaa-32f7-d6f264ab1801"
Desired Changes for "pass": (place 0) (inplace 0) (destructive 0) (stop 1) (migrate 0) (ignore 0) (canary 0)
Desired Changes for "fail": (place 1) (inplace 0) (destructive 0) (stop 0) (migrate 0) (ignore 0) (canary 0)
2017/10/11 21:18:10.532028 [DEBUG] worker: submitted plan for evaluation 3dea4483-f550-1d1a-a052-253472757fa3
2017/10/11 21:18:10.532122 [DEBUG] sched: <Eval "3dea4483-f550-1d1a-a052-253472757fa3" JobID: "test" Namespace: "def
@hobochili
hobochili / nomad-auto-revert-test.sh
Last active January 16, 2018 14:04
Nomad auto-revert test
#/bin/bash
# Creates a stable test job with auto_revert=true in Nomad,
# updates it a bunch of times to force the job version to 256,
# then creates an unstable job. Nomad will roll back to 255
# instead of 256.
sudo tee /tmp/pass.nomad << EOF > /dev/null
job "test" {
datacenters = ["dc1"]
### Keybase proof
I hereby claim:
* I am hobochili on github.
* I am hobochili (https://keybase.io/hobochili) on keybase.
* I have a public key ASDF6BsGeGhkJVW_qseowJeyLmGs-wx-z6XHB7Aj7hYQhgo
To claim this, I am signing this object: