diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-06 10:03:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-06 10:03:45 +0300 |
| commit | 04b88e725c4a0e4e3b6f7f4982838166f771250c (patch) | |
| tree | 841c65c7b6415f00363683c42c1809f5e18dc89a | |
| parent | 29b171e1f3132db02285b64a441d4336c54265cc (diff) | |
immich: tune ML throughput - add postgres anti-affinity, increase intra-op threads, increase worker timeout
Amp-Thread-ID: https://ampcode.com/threads/T-019d6154-8fdf-74fe-b865-f796d8a4214a
Co-authored-by: Amp <amp@ampcode.com>
| -rw-r--r-- | f3s/argocd-apps/services/immich.yaml | 22 | ||||
| -rw-r--r-- | f3s/immich/values.yaml | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/f3s/argocd-apps/services/immich.yaml b/f3s/argocd-apps/services/immich.yaml index f01dcd5..2d6fc74 100644 --- a/f3s/argocd-apps/services/immich.yaml +++ b/f3s/argocd-apps/services/immich.yaml @@ -112,6 +112,15 @@ spec: values: - server topologyKey: "kubernetes.io/hostname" + - weight: 80 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app + operator: In + values: + - immich-postgres + topologyKey: "kubernetes.io/hostname" persistence: cache: enabled: true @@ -149,6 +158,10 @@ spec: main: image: tag: v2.5.5 + env: + MACHINE_LEARNING_MODEL_INTRA_OP_THREADS: "4" + MACHINE_LEARNING_MODEL_INTER_OP_THREADS: "1" + MACHINE_LEARNING_WORKER_TIMEOUT: "300" resources: requests: cpu: 500m @@ -168,6 +181,15 @@ spec: values: - server topologyKey: "kubernetes.io/hostname" + - weight: 80 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app + operator: In + values: + - immich-postgres + topologyKey: "kubernetes.io/hostname" main: containers: main: diff --git a/f3s/immich/values.yaml b/f3s/immich/values.yaml index 14939a9..bc34f31 100644 --- a/f3s/immich/values.yaml +++ b/f3s/immich/values.yaml @@ -102,6 +102,15 @@ machine-learning: values: - server topologyKey: "kubernetes.io/hostname" + - weight: 80 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app + operator: In + values: + - immich-postgres + topologyKey: "kubernetes.io/hostname" persistence: cache: enabled: true @@ -137,6 +146,10 @@ controllers: machine-learning: containers: main: + env: + MACHINE_LEARNING_MODEL_INTRA_OP_THREADS: "4" + MACHINE_LEARNING_MODEL_INTER_OP_THREADS: "1" + MACHINE_LEARNING_WORKER_TIMEOUT: "300" resources: requests: cpu: 500m @@ -156,6 +169,15 @@ controllers: values: - server topologyKey: "kubernetes.io/hostname" + - weight: 80 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app + operator: In + values: + - immich-postgres + topologyKey: "kubernetes.io/hostname" main: containers: main: |
