Skip to content

Commit 3ae90a6

Browse files
committed
reduce cpus and processes
1 parent f0ed656 commit 3ae90a6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@ EXPOSE 5050
4949
ENV FLASK_APP=app.py
5050

5151
# Run the application using uWSGI
52-
# CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4"]
53-
# longer timeout settings to allow for slower rag and llm responses
54-
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--harakiri", "300", "--socket-timeout", "300", "--http-timeout", "300", "--http-keepalive", "--http-auto-chunked"]
52+
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "2"]

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
resources:
3131
reservations:
3232
memory: 4G
33-
cpus: 2.0
33+
cpus: 1.0
3434
healthcheck:
3535
test: ["CMD", "curl", "-f", "http://localhost:5050/"]
3636
interval: 30s

0 commit comments

Comments
 (0)