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" {
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" {

View file

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

View file

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

View file

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