mirror of
https://github.com/immich-app/immich.git
synced 2025-12-03 17:19:52 +09:00
feat(ml): support dynamic scaling (#12065)
feat(ml): make http keep-alive configurable Closes #12064
This commit is contained in:
committed by
GitHub
parent
9f5a3f1e84
commit
f3e176e192
@@ -13,6 +13,7 @@ fi
|
||||
: "${IMMICH_HOST:=[::]}"
|
||||
: "${IMMICH_PORT:=3003}"
|
||||
: "${MACHINE_LEARNING_WORKERS:=1}"
|
||||
: "${MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S:=2}"
|
||||
|
||||
gunicorn app.main:app \
|
||||
-k app.config.CustomUvicornWorker \
|
||||
@@ -20,4 +21,5 @@ gunicorn app.main:app \
|
||||
-w "$MACHINE_LEARNING_WORKERS" \
|
||||
-t "$MACHINE_LEARNING_WORKER_TIMEOUT" \
|
||||
--log-config-json log_conf.json \
|
||||
--keep-alive "$MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S" \
|
||||
--graceful-timeout 0
|
||||
|
||||
Reference in New Issue
Block a user