From 0e788699cdcfc327d520a83739f54cc18d105e9e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 11 Apr 2024 23:30:56 +0200 Subject: [PATCH] Use new valkey to replace redis --- example/immich.nomad.hcl | 17 ++++++++++------- immich.nomad.hcl | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/example/immich.nomad.hcl b/example/immich.nomad.hcl index 5d5341e..4b4adb9 100644 --- a/example/immich.nomad.hcl +++ b/example/immich.nomad.hcl @@ -7,8 +7,6 @@ job "immich" { region = "global" - - group "immich" { network { @@ -16,6 +14,7 @@ job "immich" { } + volume "data" { source = "immich-data" type = "csi" @@ -268,8 +267,8 @@ _EOT } - # Local redis instance - task "redis" { + # Local valkey instance + task "valkey" { driver = "docker" user = 6379 @@ -279,10 +278,11 @@ _EOT } config { - image = "redis:alpine" + image = "danielberteaud/valkey:24.4-1" readonly_rootfs = true force_pull = true - args = ["/local/redis.conf"] + pids_limit = 100 + args = ["/local/valkey.conf"] } template { @@ -293,13 +293,15 @@ databases 1 save "" appendonly no _EOT - destination = "local/redis.conf" + destination = "local/valkey.conf" } + resources { cpu = 20 memory = 64 } + } @@ -312,6 +314,7 @@ _EOT } + volume "ml" { source = "immich-ml" type = "csi" diff --git a/immich.nomad.hcl b/immich.nomad.hcl index 0781824..cd8ef7b 100644 --- a/immich.nomad.hcl +++ b/immich.nomad.hcl @@ -136,7 +136,7 @@ _EOT [[ template "common/resources" $c ]] } -[[ template "common/task.redis" dict "resources" .immich.redis.resources ]] +[[ template "common/task.redis" $c ]] } [[- if .immich.machine_learning.enabled ]]