diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-08 16:34:41 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-08 16:34:41 +0100 |
commit | b42e42faaa4db3123106d8d7342100b4681096b7 (patch) | |
tree | 7babc26af18ce7ceeefbbb70cec3117652557c5a /app | |
parent | d6bdfbed5fc8b35cb10d6092625c1d1cd78d30d3 (diff) | |
download | infrastructure-b42e42faaa4db3123106d8d7342100b4681096b7.tar.gz infrastructure-b42e42faaa4db3123106d8d7342100b4681096b7.zip |
Improve resource allocation
Diffstat (limited to 'app')
-rw-r--r-- | app/garage/deploy/garage.hcl | 4 | ||||
-rw-r--r-- | app/im/deploy/im.hcl | 4 | ||||
-rw-r--r-- | app/jitsi/deploy/jitsi.hcl | 2 | ||||
-rw-r--r-- | app/science/deploy/science.hcl | 4 |
4 files changed, 8 insertions, 6 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl index a52f660..fa1f446 100644 --- a/app/garage/deploy/garage.hcl +++ b/app/garage/deploy/garage.hcl @@ -1,7 +1,7 @@ job "garage" { datacenters = ["dc1", "belair", "saturne"] type = "system" - priority = 40 + priority = 80 constraint { attribute = "${attr.cpu.arch}" @@ -18,7 +18,7 @@ job "garage" { update { max_parallel = 1 min_healthy_time = "30s" - healthy_deadline = "10m" + healthy_deadline = "5m" } task "server" { diff --git a/app/im/deploy/im.hcl b/app/im/deploy/im.hcl index 96a6506..f90dd27 100644 --- a/app/im/deploy/im.hcl +++ b/app/im/deploy/im.hcl @@ -162,8 +162,8 @@ job "im" { } resources { - memory = 500 - cpu = 1000 + memory = 250 + cpu = 100 } service { diff --git a/app/jitsi/deploy/jitsi.hcl b/app/jitsi/deploy/jitsi.hcl index 2f98ecb..87ba81f 100644 --- a/app/jitsi/deploy/jitsi.hcl +++ b/app/jitsi/deploy/jitsi.hcl @@ -2,6 +2,8 @@ job "jitsi" { datacenters = ["dc1"] type = "service" + priority = "10" + constraint { attribute = "${attr.cpu.arch}" value = "amd64" diff --git a/app/science/deploy/science.hcl b/app/science/deploy/science.hcl index 1aee7a8..1701027 100644 --- a/app/science/deploy/science.hcl +++ b/app/science/deploy/science.hcl @@ -26,8 +26,8 @@ job "science" { } resources { - cpu = 1000 - memory = 1200 + cpu = 100 + memory = 250 } service { |