Skip to content

Review gunicorn settings #36

Chris Pastl requested to merge review-gunicorn-settings-36 into main

Got more familiar with gunicorn by reading the docs and finding some best practices concerning tuning and optimization.

  • adjusted worker count to cpu_count() * 2 + 1 (seems to be a good choice for most applications, see docs)
  • increased keep_alive (for reverse proxy)
  • logs are written to the common log directory (logs/gunicorn_access.log, logs/gunicorn_error.log)

Other settings should be adjusted individually.

Running locally and using docker succeeded without issues and requests were logged to the according files.

Also changed makefile so that the cp command won't exit the script (if file already exists)

Edited by Chris Pastl

Merge request reports

Loading