Commit 6d60400
authored
Enable gunicorn's
This causes gunicorn to set `SO_REUSEPORT` on the listening
socket, which helps ensure better request distribution between
gunicorn workers and thus better performance.
We don't enable this in development, since it makes it harder to
notice when duplicate gunicorn processes have accidentally been
launched (eg in different terminals), since the "address already in use"
error no longer occurs.
See:
https://docs.gunicorn.org/en/stable/settings.html#reuse-port
benoitc/gunicorn#2938
https://lwn.net/Articles/542629/
GUS-W-17614363.reuse_port in production (#248)1 parent b0034b2 commit 6d60400
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments