From b300c220b6d844fb78bd4995a2e7f28f05b8f54c Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 25 Jul 2022 15:51:16 -0700 Subject: [PATCH] Tweak memory requirements for tasks --- blocky/blocky.nomad | 3 ++- databases/redis.nomad | 3 ++- traefik/traefik.nomad | 5 +++-- whoami.nomad | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/blocky/blocky.nomad b/blocky/blocky.nomad index 50ee2cf..050c72b 100644 --- a/blocky/blocky.nomad +++ b/blocky/blocky.nomad @@ -99,7 +99,8 @@ job "blocky" { resources { cpu = 50 - memory = 100 + memory = 50 + memory_max = 100 } template { diff --git a/databases/redis.nomad b/databases/redis.nomad index 13af735..5f2ca6d 100644 --- a/databases/redis.nomad +++ b/databases/redis.nomad @@ -58,7 +58,8 @@ job "redis" { resources { cpu = 100 - memory = 1024 + memory = 512 + memory_max = 1024 } } } diff --git a/traefik/traefik.nomad b/traefik/traefik.nomad index 81694d8..da66359 100644 --- a/traefik/traefik.nomad +++ b/traefik/traefik.nomad @@ -183,8 +183,9 @@ job "traefik" { } resources { - cpu = 50 - memory = 50 + cpu = 100 + memory = 100 + memory_max = 200 } } } diff --git a/whoami.nomad b/whoami.nomad index 877b6a0..5622c51 100644 --- a/whoami.nomad +++ b/whoami.nomad @@ -34,7 +34,7 @@ job "whoami" { sidecar_task { resources { cpu = 50 - memory = 50 + memory = 20 } } } @@ -64,7 +64,7 @@ job "whoami" { resources { cpu = 50 - memory = 50 + memory = 20 } } }