mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
adding warning
This commit is contained in:
parent
241e189fee
commit
8fb237b6fb
1 changed files with 4 additions and 0 deletions
|
|
@ -375,6 +375,10 @@ class StackRun(Subcommand):
|
||||||
logger.info(f"Worker recycling: every {max_requests}±{max_requests_jitter} requests (prevents memory leaks)")
|
logger.info(f"Worker recycling: every {max_requests}±{max_requests_jitter} requests (prevents memory leaks)")
|
||||||
logger.info(f"Total concurrent capacity: {num_workers * worker_connections} connections")
|
logger.info(f"Total concurrent capacity: {num_workers * worker_connections} connections")
|
||||||
|
|
||||||
|
# Warn if using SQLite with multiple workers
|
||||||
|
if num_workers > 1 and os.getenv("SQLITE_STORE_DIR"):
|
||||||
|
logger.warning("SQLite detected with multiple GUNICORN workers - writes will be serialized.")
|
||||||
|
|
||||||
# Execute the Gunicorn command
|
# Execute the Gunicorn command
|
||||||
# If Gunicorn is not found or fails to start, raise the exception for the caller to handle
|
# If Gunicorn is not found or fails to start, raise the exception for the caller to handle
|
||||||
subprocess.run(gunicorn_command, check=True)
|
subprocess.run(gunicorn_command, check=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue