diff options
author | Alexandre Flament <alex@al-f.net> | 2023-11-12 17:46:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 16:46:34 +0000 |
commit | bd3f526859449abe7409ebdb15ba5a5ae20b346a (patch) | |
tree | add692ed0c967861e5a035cec1fc723fd8472d2e /docs | |
parent | 7b1951aa97f05bf679d36574a16c8a85995cc9c1 (diff) | |
download | searxng-bd3f526859449abe7409ebdb15ba5a5ae20b346a.tar.gz searxng-bd3f526859449abe7409ebdb15ba5a5ae20b346a.zip |
Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992)
* Docker: add UWSGI_WORKERS and UWSGI_THREAD.
UWSGI_WORKERS specifies the number of process.
UWSGI_THREADS specifies the number of threads.
The Docker convention is to specify the whole configuration
through environment variables. While not done in SearXNG, these two
additional variables allows admins to skip uwsgi.ini
In additional, https://github.com/searxng/preview-environments starts Docker
without additional files through searxng-helm-chat.
Each instance consumes 1Go of RAM which is a lot especially when there are a
lot of instances / pull requests.
* [scripts] add environments UWSGI_WORKERS and UWSGI_THREADS
- UWSGI_WORKERS specifies the number of process.
- UWSGI_THREADS specifies the number of threads.
Templates for uwsgi scripts can be tested by::
UWSGI_WORKERS=8 UWSGI_THREADS=9 \
./utils/searxng.sh --cmd\
eval "echo \"$(cat utils/templates/etc/uwsgi/*/searxng.ini*)\""\
| grep "workers\|threads"
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
---------
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/admin/installation-docker.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/admin/installation-docker.rst b/docs/admin/installation-docker.rst index c667c4f44..09471891b 100644 --- a/docs/admin/installation-docker.rst +++ b/docs/admin/installation-docker.rst @@ -92,6 +92,9 @@ instance using `docker run <https://docs.docker.com/engine/reference/run/>`_: searxng/searxng 2f998.... # container's ID +The environment variables UWSGI_WORKERS and UWSGI_THREADS overwrite the default +number of UWSGI processes and UWSGI threads specified in `/etc/searxng/uwsgi.ini`. + Open your WEB browser and visit the URL: .. code:: sh |