From 158ce6a2005a3c9132b36231885e666cbb6727a9 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 1 Mar 2024 11:05:48 +0100 Subject: [PATCH] deployment: Update resources --- deployment/jobs/brawltime-media.nomad | 6 +++--- deployment/jobs/mariadb.nomad | 6 +++--- deployment/jobs/nginx.nomad | 6 +++--- deployment/jobs/redis.nomad | 4 ++-- deployment/jobs/traefik.nomad | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/deployment/jobs/brawltime-media.nomad b/deployment/jobs/brawltime-media.nomad index 3c39f737..f81a3afd 100644 --- a/deployment/jobs/brawltime-media.nomad +++ b/deployment/jobs/brawltime-media.nomad @@ -126,7 +126,7 @@ job "brawltime-media" { PORT = "${NOMAD_PORT_http}" ASSET_DIR = "/assets/" DD_AGENT_HOST = "${attr.unique.network.ip-address}" - NODE_OPTIONS = "--max-old-space-size=${NOMAD_MEMORY_LIMIT}" # excess capacity is for sharp + NODE_OPTIONS = "--max-old-space-size=${512}" # sharp will use about 300MB more } config { @@ -141,8 +141,8 @@ job "brawltime-media" { resources { cpu = 512 - memory = 512 - memory_max = 768 # sharp will use as much memory as available + memory = 896 + memory_max = 1024 } } diff --git a/deployment/jobs/mariadb.nomad b/deployment/jobs/mariadb.nomad index b0ced195..548b5c24 100644 --- a/deployment/jobs/mariadb.nomad +++ b/deployment/jobs/mariadb.nomad @@ -60,9 +60,9 @@ job "mariadb" { } resources { - cpu = 196 - memory = 196 - memory_max = 256 + cpu = 512 + memory = 256 + memory_max = 512 } } } diff --git a/deployment/jobs/nginx.nomad b/deployment/jobs/nginx.nomad index 5825513d..b1580754 100644 --- a/deployment/jobs/nginx.nomad +++ b/deployment/jobs/nginx.nomad @@ -120,9 +120,9 @@ job "nginx" { } resources { - cpu = 1536 - memory = 512 - memory_max = 1024 + cpu = 1024 + memory = 768 + memory_max = 1280 } } } diff --git a/deployment/jobs/redis.nomad b/deployment/jobs/redis.nomad index 244eb4b9..e4317333 100644 --- a/deployment/jobs/redis.nomad +++ b/deployment/jobs/redis.nomad @@ -77,8 +77,8 @@ job "redis" { resources { # reserve 3-4x to handle spikes cpu = 1024 # typically 192 - memory = 3072 # typically 768 - memory_max = 3328 + memory = 2560 # typically 768-2048 + memory_max = 2816 } } } diff --git a/deployment/jobs/traefik.nomad b/deployment/jobs/traefik.nomad index 2d777df0..9e405dd1 100644 --- a/deployment/jobs/traefik.nomad +++ b/deployment/jobs/traefik.nomad @@ -96,8 +96,8 @@ job "traefik" { resources { cpu = 1536 - memory = 512 - memory_max = 1536 + memory = 256 + memory_max = 1280 } } }