Skip to content

Commit

Permalink
Document setting WEB_CONCURRENCY to run multi-process
Browse files Browse the repository at this point in the history
  • Loading branch information
jameysharp committed May 4, 2020
1 parent 679c5aa commit 01fbaba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/dokku-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ Set up Django to send email through your mail server by filling in these variabl
$ ssh dokku@$DOMAIN config:set $APP EMAIL_HOST=mailhost EMAIL_PORT=port EMAIL_USE_SSL=True EMAIL_HOST_USER=emailusername EMAIL_HOST_PASSWORD=password
```
In its default configuration, the `gunicorn` web server can only handle one request at a time. Ideally all requests would respond quickly and this wouldn't matter, but in practice it does. The documentation recommends that however many CPU cores you have, you should run 2-4 times as many worker processes. So if you have 8 cores and want to run twice as many worker processes, set this:
```
$ ssh dokku@$DOMAIN config:set $APP WEB_CONCURRENCY=16
```
Deploy
------
Expand Down

0 comments on commit 01fbaba

Please sign in to comment.