From 928f273bbe0de2353502fde3d77523e29c7ab7df Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 30 Mar 2024 10:35:43 +0530 Subject: [PATCH] Configure production setup for moving to single worker model --- gunicorn-config.py | 2 +- prod.Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gunicorn-config.py b/gunicorn-config.py index 97a9191a..ea382346 100644 --- a/gunicorn-config.py +++ b/gunicorn-config.py @@ -1,7 +1,7 @@ import multiprocessing bind = "0.0.0.0:42110" -workers = 8 +workers = 1 worker_class = "uvicorn.workers.UvicornWorker" timeout = 120 keep_alive = 60 diff --git a/prod.Dockerfile b/prod.Dockerfile index 96aa9d3c..0da5363a 100644 --- a/prod.Dockerfile +++ b/prod.Dockerfile @@ -1,5 +1,4 @@ -FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 -# FROM ubuntu:jammy +FROM ubuntu:jammy LABEL org.opencontainers.image.source https://github.com/khoj-ai/khoj