You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
7 months ago
..
templates Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 7 months ago
brand.env [fix] accidentally pushed utils/brand.env 9 months ago
build_env.py [fix] spelling 9 months ago
filtron.sh [mod] fix minor leftovers from PR #1332 2 years ago
lib.sh Fix checksum virtualenv checks. 1 year ago
lib_go.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lib_nvm.sh [fix] make nvm.env exit with error when VERBOSE is unset 1 year ago
lib_redis.sh [utils/searxng.sh] implement new script to install SearXNG 2 years ago
lib_sxng_data.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lib_sxng_node.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lib_sxng_static.sh [fix] typos in documentation & messages 10 months ago
lib_sxng_test.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lib_sxng_themes.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lib_sxng_weblate.sh [doc] improve documentation of make targets and ./manage script 10 months ago
lxc-searxng.env [doc] update & fix documentation of the "SearXNG LXC suite" 1 year ago
lxc.sh [LXC] ubuntu 21.10 upgrade to ubuntu 22.04 LTS [1] 1 year ago
makefile.include [mod] replace makefile boilerplate by 'manage' script 3 years ago
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 3 years ago
morty.sh [mod] fix minor leftovers from PR #1332 2 years ago
searx.sh [fix] typos in documentation & messages 10 months ago
searxng.sh Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 7 months ago
searxng_check.py move searx.shared.redisdb to searx.redisdb 1 year ago