feat: uwsgi workers / threads configuration options (#235)
This commit is contained in:
parent
0667030a42
commit
f2b9efe33e
7
.env
7
.env
|
@ -5,3 +5,10 @@
|
|||
|
||||
# SEARXNG_HOSTNAME=<host>
|
||||
# LETSENCRYPT_EMAIL=<email>
|
||||
|
||||
# Optional:
|
||||
# If you run a very small or a very large instance, you might want to change the amount of used uwsgi workers and threads per worker
|
||||
# More workers (= processes) means that more search requests can be handled at the same time, but it also causes more resource usage
|
||||
|
||||
# SEARXNG_UWSGI_WORKERS=4
|
||||
# SEARXNG_UWSGI_THREADS=4
|
||||
|
|
|
@ -56,6 +56,8 @@ services:
|
|||
- ./searxng:/etc/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
|
||||
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
|
||||
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
|
|
Loading…
Reference in New Issue