Adjust Nomad restart and reschedule behavior
to limit the number of reschedules as we cannot guarantee an error-free job definition. We also set reasonable delays and intervals to increase the likelihood that one deployment has enough time, but there is no second deployment within the interval.
This commit is contained in:

committed by
Sebastian Serth

parent
ead96f6f18
commit
8f819de2e0
@ -18,11 +18,18 @@ job "template-0" {
|
||||
weight = 100
|
||||
}
|
||||
restart {
|
||||
delay = "0s"
|
||||
attempts = 3
|
||||
delay = "15s"
|
||||
interval = "1h"
|
||||
mode = "fail"
|
||||
}
|
||||
reschedule {
|
||||
unlimited = true
|
||||
attempts = 0
|
||||
unlimited = false
|
||||
attempts = 3
|
||||
interval = "6h"
|
||||
delay = "1m"
|
||||
max_delay = "4m"
|
||||
delay_function = "exponential"
|
||||
}
|
||||
|
||||
task "default-task" {
|
||||
|
Reference in New Issue
Block a user