1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-16 09:30:11 +01:00
searxng/utils
Alexandre Flament bd3f526859
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>
2023-11-12 16:46:34 +00:00
..
templates Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 2023-11-12 16:46:34 +00:00
brand.env [fix] accidentally pushed utils/brand.env 2023-09-18 18:18:37 +02:00
build_env.py [fix] spelling 2023-09-18 16:20:27 +02:00
filtron.sh [mod] fix minor leftovers from PR #1332 2022-07-30 16:13:47 +02:00
lib_go.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_nvm.sh [fix] make nvm.env exit with error when VERBOSE is unset 2023-02-11 13:18:07 +01:00
lib_redis.sh [utils/searxng.sh] implement new script to install SearXNG 2022-07-30 13:39:35 +02:00
lib_sxng_data.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_node.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_static.sh [fix] typos in documentation & messages 2023-08-13 08:50:29 +02:00
lib_sxng_test.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_themes.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_weblate.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib.sh Fix checksum virtualenv checks. 2023-01-03 18:44:55 -06:00
lxc-searxng.env [doc] update & fix documentation of the "SearXNG LXC suite" 2023-05-21 18:12:39 +02:00
lxc.sh [LXC] ubuntu 21.10 upgrade to ubuntu 22.04 LTS [1] 2023-02-01 09:30:13 +01:00
makefile.include [mod] replace makefile boilerplate by 'manage' script 2021-04-23 11:26:22 +02:00
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
morty.sh [mod] fix minor leftovers from PR #1332 2022-07-30 16:13:47 +02:00
searx.sh [fix] typos in documentation & messages 2023-08-13 08:50:29 +02:00
searxng_check.py move searx.shared.redisdb to searx.redisdb 2022-12-10 09:26:38 +01:00
searxng.sh Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 2023-11-12 16:46:34 +00:00