diff --git a/stacks/ai/ai-frontend.nomad b/stacks/ai/ai-frontend.nomad index b539705..1945952 100644 --- a/stacks/ai/ai-frontend.nomad +++ b/stacks/ai/ai-frontend.nomad @@ -3,10 +3,11 @@ job "ai-frontend" { region = "home" type = "service" - # --- OpenWebUI (Keep as is) --- + # --- OpenWebUI --- group "openwebui" { count = 1 + # Pin to HP1 constraint { attribute = "${attr.unique.hostname}" value = "hp-mini-1" @@ -46,14 +47,19 @@ job "ai-frontend" { ] } - resources { cpu = 1000; memory = 1024 } + # FIXED: Expanded to multi-line to remove illegal semicolon + resources { + cpu = 1000 + memory = 1024 + } } } - # --- LobeChat (UPDATED) --- + # --- LobeChat --- group "lobechat" { count = 1 + # Pin to HP1 constraint { attribute = "${attr.unique.hostname}" value = "hp-mini-1" @@ -91,10 +97,9 @@ job "ai-frontend" { ports = ["http"] } + # FIXED: Ensure 1GB RAM to prevent OOM resources { cpu = 500 - # --- THE FIX --- - # Increased from 512 to 1024 to prevent OOM crashes memory = 1024 } }