aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-06 13:06:20 +0000
committerGravatar GitHub <[email protected]>2020-12-06 13:06:20 +0000
commit6405db48028e604d7d5bde0807843a18ad44cf98 (patch)
tree2ceaa6a42647ee00bcb12e8cf29091be209ed654
parentMerge pull request #426 from python-discord/sebastiaan/backend/refactor-deplo... (diff)
parentUpdate manage.py (diff)
Merge pull request #431 from python-discord/gunicorn/max-requests
Set max-requests-jitter parameter to gunicorn
-rwxr-xr-xmanage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/manage.py b/manage.py
index 446b1af3..a025e7b1 100755
--- a/manage.py
+++ b/manage.py
@@ -163,7 +163,11 @@ class SiteManager:
"-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.