From 02876527748f83b292afcf2a43a2b16712749325 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 28 Nov 2025 09:26:48 +0100 Subject: [PATCH] Improve Pixelfed resource configuration and translate waiting message - Updated Pixelfed worker and application CPU/RAM limits - Added Redis memory reservation and limit - Added pids_limit for worker - Translated script message from German to English - Reference: https://chatgpt.com/share/69295cad-0398-800f-9604-953c2f5a833b --- roles/svc-opt-ssd-hdd/files/script.py | 2 +- roles/web-app-pixelfed/config/main.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/svc-opt-ssd-hdd/files/script.py b/roles/svc-opt-ssd-hdd/files/script.py index 53f7b300..c4696c49 100644 --- a/roles/svc-opt-ssd-hdd/files/script.py +++ b/roles/svc-opt-ssd-hdd/files/script.py @@ -130,7 +130,7 @@ if __name__ == "__main__": if has_healthcheck(container): status = get_health_status(container) while status != 'healthy': - print(f"Warte auf Container {container}, Status '{status}'...") + print(f"Wait for Container {container}, Status '{status}'...") time.sleep(1) status = get_health_status(container) diff --git a/roles/web-app-pixelfed/config/main.yml b/roles/web-app-pixelfed/config/main.yml index ecd11f30..c8cc7f24 100644 --- a/roles/web-app-pixelfed/config/main.yml +++ b/roles/web-app-pixelfed/config/main.yml @@ -28,6 +28,8 @@ docker: services: redis: enabled: true + mem_reservation: 0.1g + mem_limit: 0.2g database: enabled: true pixelfed: @@ -36,7 +38,14 @@ docker: name: "pixelfed" backup: no_stop_required: true + cpus: 0.75 + mem_reservation: 0.5g + mem_limit: 0.75g worker: name: "pixelfed_worker" + cpus: 1.0 + mem_reservation: 0.75g + mem_limit: 1g + pids_limit: 512 volumes: data: "pixelfed_data"