From c7bb9e77abf1ca5bddfe51a15a680876bbb3da7e Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 17:49:16 +0200 Subject: [PATCH] docs: add MAX_RAM and MAX_CPU environment variables documentation (#1581) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: mogery@sideguide.dev --- SELF_HOST.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SELF_HOST.md b/SELF_HOST.md index acccddbc..60b70afa 100644 --- a/SELF_HOST.md +++ b/SELF_HOST.md @@ -103,6 +103,15 @@ BULL_AUTH_KEY=CHANGEME # Set if you'd like to send posthog events like job logs # POSTHOG_API_KEY= # POSTHOG_HOST= + +## === System Resource Configuration === +# Maximum CPU usage threshold (0.0-1.0). Server will reject new connections when CPU usage exceeds this value. +# Default: 0.8 (80%) +# MAX_CPU=0.8 + +# Maximum RAM usage threshold (0.0-1.0). Server will reject new connections when memory usage exceeds this value. +# Default: 0.8 (80%) +# MAX_RAM=0.8 ``` 3. Build and run the Docker containers: