Try limit uwsgi memory usage by configuring file descriptor limit (#990)

This commit is contained in:
Sascha Ißbrücker
2025-02-15 08:49:58 +01:00
committed by GitHub
parent 5e7172d17e
commit 1274a9ae0a
2 changed files with 4 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ ENV PATH=/opt/venv/bin:$PATH
RUN mkdir data && \ RUN mkdir data && \
python manage.py collectstatic python manage.py collectstatic
# Limit file descriptors used by uwsgi, see https://github.com/sissbruecker/linkding/issues/453
ENV UWSGI_MAX_FD=4096
# Expose uwsgi server at port 9090 # Expose uwsgi server at port 9090
EXPOSE 9090 EXPOSE 9090
# Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman # Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman

View File

@@ -71,6 +71,8 @@ ENV PATH=/opt/venv/bin:$PATH
RUN mkdir data && \ RUN mkdir data && \
python manage.py collectstatic python manage.py collectstatic
# Limit file descriptors used by uwsgi, see https://github.com/sissbruecker/linkding/issues/453
ENV UWSGI_MAX_FD=4096
# Expose uwsgi server at port 9090 # Expose uwsgi server at port 9090
EXPOSE 9090 EXPOSE 9090
# Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman # Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman