aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-01 17:03:20 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-01 17:03:20 +0100
commit195e340f567b768fd3731f6abb5ae8960f1fe8ff (patch)
tree77e1b2f5ec1aaf5fcd728987b06392feca84306c
parent9d0a2d89143b7055ebddb240f1dfa73388589b90 (diff)
downloadnixcfg-195e340f567b768fd3731f6abb5ae8960f1fe8ff.tar.gz
nixcfg-195e340f567b768fd3731f6abb5ae8960f1fe8ff.zip
prod: more agressive restart on core services
-rw-r--r--cluster/prod/app/core/deploy/core.hcl15
1 files changed, 11 insertions, 4 deletions
diff --git a/cluster/prod/app/core/deploy/core.hcl b/cluster/prod/app/core/deploy/core.hcl
index a246f09..43966b7 100644
--- a/cluster/prod/app/core/deploy/core.hcl
+++ b/cluster/prod/app/core/deploy/core.hcl
@@ -23,8 +23,8 @@ job "core" {
}
restart {
- interval = "30m"
- attempts = 2
+ interval = "5m"
+ attempts = 10
delay = "15s"
mode = "delay"
}
@@ -97,8 +97,8 @@ EOH
}
restart {
- interval = "30m"
- attempts = 2
+ interval = "5m"
+ attempts = 10
delay = "15s"
mode = "delay"
}
@@ -177,6 +177,13 @@ EOH
]
}
+ restart {
+ interval = "5m"
+ attempts = 10
+ delay = "15s"
+ mode = "delay"
+ }
+
resources {
memory = 100
memory_max = 200