Skip to content

Commit

Permalink
Prevent uWSGI from consuming too much memory (#2884)
Browse files Browse the repository at this point in the history
# What this PR does

Fixes #1521 (see
unbit/uwsgi#2299)

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
  • Loading branch information
vadimkerr committed Aug 25, 2023
1 parent 9764a49 commit fbfcf7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ die-on-term=true
; every request. It is not so slow, but with some kind of app/extensions that could be overkill.
single-interpreter=true

; Prevent uWSGI from consuming too much memory: https://github.com/grafana/oncall/issues/1521
max-fd=1048576

logger=stdio
log-format=source=engine:uwsgi status=%(status) method=%(method) path=%(uri) latency=%(secs) google_trace_id=%(var.HTTP_X_CLOUD_TRACE_CONTEXT) protocol=%(proto) resp_size=%(size) req_body_size=%(cl)
log-encoder=format ${strftime:%%Y-%%m-%%d %%H:%%M:%%S} ${msgnl}

0 comments on commit fbfcf7b

Please sign in to comment.