From a7f92dd06cd39fab6586823874cf4c8fbda9a2aa Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 11 Feb 2024 22:48:56 +0100 Subject: [PATCH] Update resources allocation and rendered example --- example/immich.nomad.hcl | 15 ++++++++++----- variables.yml | 7 ++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/example/immich.nomad.hcl b/example/immich.nomad.hcl index 63d5b87..3a1416d 100644 --- a/example/immich.nomad.hcl +++ b/example/immich.nomad.hcl @@ -30,10 +30,12 @@ job "immich" { proxy { upstreams { destination_name = "immich-ml" + destination_type = "service" local_bind_port = 3003 } upstreams { destination_name = "postgres" + destination_type = "service" local_bind_port = 5432 } } @@ -98,7 +100,7 @@ job "immich" { user = 1053 config { - image = "danielberteaud/wait-for:24.1-1" + image = "danielberteaud/wait-for:24.2-1" readonly_rootfs = true pids_limit = 20 } @@ -143,6 +145,7 @@ job "immich" { policies = ["immich"] env = false disable_file = true + change_mode = "noop" } @@ -209,6 +212,7 @@ _EOT policies = ["immich"] env = false disable_file = true + change_mode = "noop" } @@ -247,8 +251,8 @@ _EOT resources { cpu = 500 - memory = 1024 - memory_max = 1536 + memory = 768 + memory_max = 1200 } } @@ -360,8 +364,9 @@ _EOT resources { - cpu = 1024 - memory = 1536 + cpu = 1024 + memory = 1024 + memory_max = 1536 } } diff --git a/variables.yml b/variables.yml index 7df53f8..ac5109d 100644 --- a/variables.yml +++ b/variables.yml @@ -91,8 +91,8 @@ immich: # Resource allocation resources: cpu: 500 - memory: 1024 - memory_max: 1536 + memory: 768 + memory_max: 1200 # The machine learning machine_learning: @@ -109,7 +109,8 @@ immich: # Resource allocation resources: cpu: 1024 - memory: 1536 + memory: 1024 + memory_max: 1536 volumes: # Volume used for models cache