aboutsummaryrefslogtreecommitdiff
path: root/cluster
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-10-18 10:40:59 +0200
committerAlex Auvolat <alex@adnab.me>2022-10-18 10:40:59 +0200
commitafc368421db3aecec2c43e9751b8bb45352322b7 (patch)
tree1371d06bc5ef80b934f9c57ead0956ab77351ed1 /cluster
parent2592dcaa2df5fdcf63ccf25ecbf368781f682e36 (diff)
downloadnixcfg-afc368421db3aecec2c43e9751b8bb45352322b7.tar.gz
nixcfg-afc368421db3aecec2c43e9751b8bb45352322b7.zip
Rebalance ressource attribution on staging
Diffstat (limited to 'cluster')
-rw-r--r--cluster/staging/app/im/deploy/im.hcl6
-rw-r--r--cluster/staging/app/telemetry/deploy/telemetry.hcl4
2 files changed, 8 insertions, 2 deletions
diff --git a/cluster/staging/app/im/deploy/im.hcl b/cluster/staging/app/im/deploy/im.hcl
index c60b095..25e80a1 100644
--- a/cluster/staging/app/im/deploy/im.hcl
+++ b/cluster/staging/app/im/deploy/im.hcl
@@ -20,6 +20,12 @@ job "im" {
delay = "30s"
}
+ constraint {
+ attribute = "${attr.unique.hostname}"
+ operator = "!="
+ value = "caribou"
+ }
+
task "restore-db" {
lifecycle {
hook = "prestart"
diff --git a/cluster/staging/app/telemetry/deploy/telemetry.hcl b/cluster/staging/app/telemetry/deploy/telemetry.hcl
index 18719bc..cbbdec3 100644
--- a/cluster/staging/app/telemetry/deploy/telemetry.hcl
+++ b/cluster/staging/app/telemetry/deploy/telemetry.hcl
@@ -147,7 +147,7 @@ job "telemetry" {
resources {
memory = 300
- cpu = 300
+ cpu = 800
}
service {
@@ -224,7 +224,7 @@ job "telemetry" {
}
resources {
memory = 2000
- cpu = 300
+ cpu = 1000
}
template {