Fix nomad init to use default values for restart stanza

This commit is contained in:
Preetha Appan 2018-01-31 16:43:29 -06:00
parent 0cd69b54a5
commit f91126a5cb
No known key found for this signature in database
GPG key ID: 9F7C19990A50EAFC

View file

@ -183,18 +183,18 @@ job "example" {
#
restart {
# The number of attempts to run the job within the specified interval.
attempts = 10
interval = "5m"
attempts = 2
interval = "15s"
# The "delay" parameter specifies the duration to wait before restarting
# a task after it has failed.
delay = "25s"
delay = "15s"
# The "mode" parameter controls what happens when a task has restarted
# "attempts" times within the interval. "delay" mode delays the next
# restart until the next interval. "fail" mode does not restart the task
# if "attempts" has been hit within the interval.
mode = "delay"
mode = "fail"
}
# The "ephemeral_disk" stanza instructs Nomad to utilize an ephemeral disk