docker: Apache config: set WSGI restart-interval to 12 hours

By default it never restarts. It is a good idea to avoid leaks across
weeks of a Python process running.

Also remove useless comment about processes value (16 is probably higher
than CPU count and will be fine).

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2025-01-03 12:08:29 +01:00
parent c6bc09ed10
commit 412bb85940

View file

@ -14,8 +14,10 @@
DocumentRoot /usr/local/elixir/
SetEnv LXR_PROJ_DIR /srv/elixir-data/
# NOTE: it's recommended to set processes value to the number of available cores
WSGIDaemonProcess Elixir processes=16 threads=1 display-name=%{GROUP} home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
# restart-interval is 12 hours
WSGIDaemonProcess Elixir processes=16 threads=1 \
display-name=%{GROUP} restart-interval=43200 \
home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup Elixir