forked from Deuxfleurs/nixcfg
prod: more agressive restart on core services
This commit is contained in:
parent
9d0a2d8914
commit
195e340f56
1 changed files with 11 additions and 4 deletions
|
@ -23,8 +23,8 @@ job "core" {
|
||||||
}
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
interval = "30m"
|
interval = "5m"
|
||||||
attempts = 2
|
attempts = 10
|
||||||
delay = "15s"
|
delay = "15s"
|
||||||
mode = "delay"
|
mode = "delay"
|
||||||
}
|
}
|
||||||
|
@ -97,8 +97,8 @@ EOH
|
||||||
}
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
interval = "30m"
|
interval = "5m"
|
||||||
attempts = 2
|
attempts = 10
|
||||||
delay = "15s"
|
delay = "15s"
|
||||||
mode = "delay"
|
mode = "delay"
|
||||||
}
|
}
|
||||||
|
@ -177,6 +177,13 @@ EOH
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restart {
|
||||||
|
interval = "5m"
|
||||||
|
attempts = 10
|
||||||
|
delay = "15s"
|
||||||
|
mode = "delay"
|
||||||
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
memory = 100
|
memory = 100
|
||||||
memory_max = 200
|
memory_max = 200
|
||||||
|
|
Loading…
Reference in a new issue