Skip to content

Commit

Permalink
Reduce worker count from 4 to 2
Browse files Browse the repository at this point in the history
We'll be creating a second site instance to allow for rolling restarts, so it makes sense to half this so when we double the requests we'll effectively have 4 workers again.
  • Loading branch information
jb3 committed Feb 25, 2021
1 parent 2f3c30f commit 97d0ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def run_server(self) -> None:
"-b", "0.0.0.0:8000",
"pydis_site.wsgi:application",
"--threads", "8",
"-w", "4",
"-w", "2",
"--max-requests", "1000",
"--max-requests-jitter", "50",
"--statsd-host", "graphite.default.svc.cluster.local:8125",
Expand Down

0 comments on commit 97d0ece

Please sign in to comment.