Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable uwsgi request logging #339

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Disable uwsgi request logging #339

merged 1 commit into from
Feb 11, 2021

Conversation

alastair
Copy link
Collaborator

@alastair alastair commented Feb 1, 2021

This does nothing except fill up tens to hundreds of gigabytes of logs,
and isn't needed.

Problem

UWSGI logs each request, in the form

[pid: 343|app: 0|req: 678/3082] 93.213.240.171 () {38 vars in 637 bytes} [Mon Feb 1 15:42:51 2021] GET /a5a41a8a-9eb8-4d89-b831-c3b3636ee55c/low-level => generated 52243 bytes in 14 msecs (HTTP/1.1 200) 10 headers in 411 bytes (1 switches on core 0)

This fills up docker logs (tens to hundreds of GB), and we don't use any of it

Solution

Disable uwsgi request logging (yes, the config option is 'disable-logging', but this is only request logging, not generic logging)

This does nothing except fill up tens to hundreds of gigabytes of logs,
and isn't needed.
@alastair alastair merged commit 1c5fe8e into master Feb 11, 2021
@alastair alastair deleted the uwsgi-logging branch February 11, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant