Skip to content

Commit

Permalink
Merge pull request #431 from python-discord/gunicorn/max-requests
Browse files Browse the repository at this point in the history
Set max-requests-jitter parameter to gunicorn
  • Loading branch information
jb3 committed Dec 6, 2020
2 parents 522d017 + 4e0ec7b commit 6405db4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def run_server(self) -> None:
"-b", "0.0.0.0:8000",
"pydis_site.wsgi:application",
"--threads", "8",
"-w", "4"
"-w", "4",
"--max-requests", "1000",
"--max-requests-jitter", "50",
"--statsd-host", "graphite.default.svc.cluster.local:8125",
"--statsd-prefix", "site",
]

# Run gunicorn for the production server.
Expand Down

0 comments on commit 6405db4

Please sign in to comment.