Commit 737905c
authored
Replace gunicorn with waitress (#1614)
This commit replaces the `gunicorn` WSGI server with `waitress`. It
loses the statsd statistics, but gives us peace of mind.
The setup was tested by commenting out the `python manage.py run`
command in `docker-compose.yml`. Note that migrations need to be run for
the index page to work via `podman compose exec web -- python manage.py
migrate`.
Rationale
=========
Over the last few months, our dependency `gunicorn` has received a large amount
of contributions written primarily by the maintainer with close to zero external
review.
None of these implemented features are anything we need: dirty workers,
uWSGI protocol support, control socket, shared memory, .... Nor do I
ever recall looking for any of these features in it.
The sheer volume of code and the general format of changes also strongly reeks
of LLM authorship or assistance.
Of course, every maintainer is free to do with their software whatever they
wish. But, as with any other dependency, I will evaluate any updates, keeping in
mind that any dependency we have here has full access to our database and API.
We do not need a WSGI server with regular feature development. We need one that
works and is maintained - that is the only requirement. See the linked
issue for more discussion.
Fixes: #1613
Signed-off-by: Johannes Christ <jc@jchri.st>1 parent 9c1c811 commit 737905c
6 files changed
Lines changed: 16 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
| 60 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments