forked from Deuxfleurs/infrastructure
Improve resource allocation
This commit is contained in:
parent
d6bdfbed5f
commit
b42e42faaa
4 changed files with 8 additions and 6 deletions
|
@ -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" {
|
||||
|
|
|
@ -162,8 +162,8 @@ job "im" {
|
|||
}
|
||||
|
||||
resources {
|
||||
memory = 500
|
||||
cpu = 1000
|
||||
memory = 250
|
||||
cpu = 100
|
||||
}
|
||||
|
||||
service {
|
||||
|
|
|
@ -2,6 +2,8 @@ job "jitsi" {
|
|||
datacenters = ["dc1"]
|
||||
type = "service"
|
||||
|
||||
priority = "10"
|
||||
|
||||
constraint {
|
||||
attribute = "${attr.cpu.arch}"
|
||||
value = "amd64"
|
||||
|
|
|
@ -26,8 +26,8 @@ job "science" {
|
|||
}
|
||||
|
||||
resources {
|
||||
cpu = 1000
|
||||
memory = 1200
|
||||
cpu = 100
|
||||
memory = 250
|
||||
}
|
||||
|
||||
service {
|
||||
|
|
Loading…
Reference in a new issue