From 5fd4e52b0139b822f49bc1acc8caec660201e812 Mon Sep 17 00:00:00 2001 From: Roy Belio <34023431+r-bit-rry@users.noreply.github.com> Date: Sun, 2 Nov 2025 16:11:10 +0200 Subject: [PATCH] Update docs/docs/distributions/starting_llama_stack_server.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/docs/distributions/starting_llama_stack_server.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/distributions/starting_llama_stack_server.mdx b/docs/docs/distributions/starting_llama_stack_server.mdx index d7dc39ccf..db34d8e66 100644 --- a/docs/docs/distributions/starting_llama_stack_server.mdx +++ b/docs/docs/distributions/starting_llama_stack_server.mdx @@ -42,7 +42,7 @@ Configure Gunicorn behavior using environment variables: - `GUNICORN_KEEPALIVE`: Connection keepalive in seconds (default: `5`) - `GUNICORN_MAX_REQUESTS`: Restart workers after N requests to prevent memory leaks (default: `10000`) - `GUNICORN_MAX_REQUESTS_JITTER`: Randomize worker restart timing (default: `1000`) -- `GUNICORN_PRELOAD`: Preload app before forking workers for memory efficiency (default: `true`) +- `GUNICORN_PRELOAD`: Preload app before forking workers for memory efficiency (default: `true`, as set in `run.py` line 264) **Important**: When using multiple workers without `GUNICORN_PRELOAD=true`, you may encounter database initialization race conditions. To avoid this, set `GUNICORN_PRELOAD=true` and install all dependencies with `uv sync --group unit --group test`.