Update resources allocation and rendered example

This commit is contained in:
Daniel Berteaud 2024-02-11 22:48:56 +01:00
parent f53c63f39f
commit a7f92dd06c
2 changed files with 14 additions and 8 deletions

View File

@ -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
}
}

View File

@ -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