From 2edb8d8e15d35b2579d281a4908513e8d561eea6 Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Fri, 8 Jul 2022 19:04:48 +0200 Subject: [PATCH] Predictable memory usage Signed-off-by: Rafael Caricio --- CloudronManifest.json | 1 + start.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/CloudronManifest.json b/CloudronManifest.json index b86d1b8..22394fa 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -6,6 +6,7 @@ "changelog": "file://CHANGELOG", "tagline": "Privacy-respecting metasearch engine", "version": "1.0.0", + "memoryLimit": 589719142400, "healthCheckPath": "/", "httpPort": 8888, "addons": { diff --git a/start.sh b/start.sh index dfb6c5f..cf5ce3e 100755 --- a/start.sh +++ b/start.sh @@ -10,6 +10,7 @@ if [[ ! -f /app/data/uwsgi.ini ]]; then -e "s/chdir = .*/chdir = \/app\/code\/searx/g" \ -e "s/uid = .*/uid = www-data/g" \ -e "s/gid = .*/gid = www-data/g" \ + -e "s/workers = .*/workers = 4/g" \ -e "s/static-map = \/static=.*/static-map = \/static=\/app\/code\/searx\/static/g" \ -i /app/data/uwsgi.ini fi