Update to 1.90.2 and adjust some resources allocation

This commit is contained in:
Daniel Berteaud 2023-12-09 23:18:10 +01:00
parent 3dc38b3797
commit 1ddbb6df5a
1 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@ immich:
instance: immich
# Immich version
version: v1.89.0
version: v1.90.2
# API server settings
server:
@ -18,12 +18,13 @@ immich:
env:
DB_URL: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .immich.instance ]]" }}postgres://{{ .Data.username }}:{{ urlquery .Data.password }}@localhost:5432/[[ .immich.instance ]]{{ end }}'
TYPESENSE_API_KEY: '{{ with secret "[[ .vault.prefix ]]kv/service/[[ .immich.instance ]]" }}{{ .Data.data.typesense_api_key }}{{ end }}'
NODE_OPTIONS: --max_old_space_size={{ env "NOMAD_MEMORY_LIMIT" | parseInt | divide 2 }}
NODE_OPTIONS: --max-old-space-size={{ env "NOMAD_MEMORY_LIMIT" }}
# Resource allocation
resources:
cpu: 300
memory: 320
memory_max: 512
# Wait for services to be ready before starting
wait_for:
@ -82,12 +83,13 @@ immich:
env:
DB_URL: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .immich.instance ]]" }}postgres://{{ .Data.username }}:{{ urlquery .Data.password }}@localhost:5432/[[ .immich.instance ]]{{ end }}'
TYPESENSE_API_KEY: '{{ with secret "[[ .vault.prefix ]]kv/service/[[ .immich.instance ]]" }}{{ .Data.data.typesense_api_key }}{{ end }}'
NODE_OPTIONS: --max_old_space_size={{ env "NOMAD_MEMORY_LIMIT" | parseInt | divide 2 }}
NODE_OPTIONS: --max-old-space-size={{ env "NOMAD_MEMORY_LIMIT" }}
# Resource allocation
resources:
cpu: 500
memory: 768
memory: 1024
memory_max: 1536
# The machine learning
machine_learning: