From 0f4f36fe85837c6e7605a9db41b3ded4a551db43 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 20 Nov 2026 12:57:35 -0300 Subject: [PATCH] chore(env): default example env to 1 worker with 4 threads --- .env.example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index b8654efc..74ba734f 100644 --- a/.env.example +++ b/.env.example @@ -22,10 +22,10 @@ SQL_HOST=${DB_NAME} SQL_PORT=5432 # Gunicorn -WEB_CONCURRENCY=4 -# Threads per web worker. Each worker is a full copy of the app in memory; threads share it. -# For low traffic, WEB_CONCURRENCY=1 with WEB_THREADS=4 uses far less memory. -WEB_THREADS=1 +# Each worker is a full copy of the app in memory (~140 MiB); threads share their worker's memory. +# One worker with a few threads is plenty for a personal instance. Add workers only for heavy traffic. +WEB_CONCURRENCY=1 +WEB_THREADS=4 # App Configs # Enable this if you want to keep deleted transactions in the database