docker: set WSGI processes=8 threads=1

Benchmarks tell us throughput increases linearly with processes count.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2024-12-24 16:05:03 +01:00
parent ec9d0b6538
commit 24e11d2749

View file

@ -15,7 +15,7 @@
SetEnv LXR_PROJ_DIR /srv/elixir-data/
# NOTE: it's recommended to set processes value to the number of available cores
WSGIDaemonProcess Elixir processes=4 display-name=%{GROUP} home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
WSGIDaemonProcess Elixir processes=8 threads=1 display-name=%{GROUP} home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
WSGIProcessGroup Elixir
WSGIScriptAliasMatch "^/(?!static/)" /usr/local/elixir/wsgi.py/$1