aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-04-08 10:41:50 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-04-08 10:43:42 +0200
commita614f495ad25adc180a30c8cdc5dadc4f11aa3a6 (patch)
tree1540bfdbffd017a11e71842cd8ecaebdea81aeb3
parent0e4c641db741c91dd95934b61e70a2f5268b3c7e (diff)
downloadnixcfg-a614f495ad25adc180a30c8cdc5dadc4f11aa3a6.tar.gz
nixcfg-a614f495ad25adc180a30c8cdc5dadc4f11aa3a6.zip
allow memory overprovisionning
-rw-r--r--cluster/prod/app/matrix/deploy/im.hcl3
-rw-r--r--cluster/prod/app/postgres/deploy/postgres.hcl9
-rw-r--r--cluster/prod/app/telemetry/deploy/telemetry-service.hcl9
3 files changed, 14 insertions, 7 deletions
diff --git a/cluster/prod/app/matrix/deploy/im.hcl b/cluster/prod/app/matrix/deploy/im.hcl
index 0d5387e..ed05ffc 100644
--- a/cluster/prod/app/matrix/deploy/im.hcl
+++ b/cluster/prod/app/matrix/deploy/im.hcl
@@ -65,7 +65,8 @@ job "matrix" {
resources {
cpu = 1000
- memory = 1000
+ memory = 500
+ memory_max = 1000
}
service {
diff --git a/cluster/prod/app/postgres/deploy/postgres.hcl b/cluster/prod/app/postgres/deploy/postgres.hcl
index 749731d..9bad079 100644
--- a/cluster/prod/app/postgres/deploy/postgres.hcl
+++ b/cluster/prod/app/postgres/deploy/postgres.hcl
@@ -37,7 +37,8 @@ job "postgres14" {
]
}
resources {
- memory = 100
+ memory = 20
+ memory_max = 100
}
template {
@@ -80,7 +81,8 @@ job "postgres14" {
}
resources {
- memory = 100
+ memory = 20
+ memory_max = 100
}
template {
@@ -172,7 +174,8 @@ job "postgres14" {
}
resources {
- memory = 600
+ memory = 400
+ memory_max = 600
}
service {
diff --git a/cluster/prod/app/telemetry/deploy/telemetry-service.hcl b/cluster/prod/app/telemetry/deploy/telemetry-service.hcl
index 9955872..afa8a8d 100644
--- a/cluster/prod/app/telemetry/deploy/telemetry-service.hcl
+++ b/cluster/prod/app/telemetry/deploy/telemetry-service.hcl
@@ -36,7 +36,8 @@ job "telemetry-service" {
}
resources {
- memory = 200
+ memory = 50
+ memory_max = 200
cpu = 100
}
}
@@ -75,7 +76,8 @@ EOH
}
resources {
- memory = 500
+ memory = 100
+ memory_max = 400
cpu = 500
}
@@ -123,7 +125,8 @@ EOH
}
resources {
- memory = 200
+ memory = 50
+ memory_max = 200
cpu = 100
}
}