Improve resource allocation

This commit is contained in:
Alex 2021-03-08 16:34:41 +01:00
parent d6bdfbed5f
commit b42e42faaa
4 changed files with 8 additions and 6 deletions

View file

@ -1,7 +1,7 @@
job "garage" { job "garage" {
datacenters = ["dc1", "belair", "saturne"] datacenters = ["dc1", "belair", "saturne"]
type = "system" type = "system"
priority = 40 priority = 80
constraint { constraint {
attribute = "${attr.cpu.arch}" attribute = "${attr.cpu.arch}"
@ -18,7 +18,7 @@ job "garage" {
update { update {
max_parallel = 1 max_parallel = 1
min_healthy_time = "30s" min_healthy_time = "30s"
healthy_deadline = "10m" healthy_deadline = "5m"
} }
task "server" { task "server" {

View file

@ -162,8 +162,8 @@ job "im" {
} }
resources { resources {
memory = 500 memory = 250
cpu = 1000 cpu = 100
} }
service { service {

View file

@ -2,6 +2,8 @@ job "jitsi" {
datacenters = ["dc1"] datacenters = ["dc1"]
type = "service" type = "service"
priority = "10"
constraint { constraint {
attribute = "${attr.cpu.arch}" attribute = "${attr.cpu.arch}"
value = "amd64" value = "amd64"

View file

@ -26,8 +26,8 @@ job "science" {
} }
resources { resources {
cpu = 1000 cpu = 100
memory = 1200 memory = 250
} }
service { service {