diff options
author | Alex Auvolat <alex@adnab.me> | 2022-10-18 10:40:59 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-10-18 10:40:59 +0200 |
commit | afc368421db3aecec2c43e9751b8bb45352322b7 (patch) | |
tree | 1371d06bc5ef80b934f9c57ead0956ab77351ed1 /cluster/staging | |
parent | 2592dcaa2df5fdcf63ccf25ecbf368781f682e36 (diff) | |
download | nixcfg-afc368421db3aecec2c43e9751b8bb45352322b7.tar.gz nixcfg-afc368421db3aecec2c43e9751b8bb45352322b7.zip |
Rebalance ressource attribution on staging
Diffstat (limited to 'cluster/staging')
-rw-r--r-- | cluster/staging/app/im/deploy/im.hcl | 6 | ||||
-rw-r--r-- | cluster/staging/app/telemetry/deploy/telemetry.hcl | 4 |
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 { |