mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
feat: support workers in run config (#4014)
Cherry-pick of #3992 to release-0.3.x Adds support for configuring the number of workers in run.yaml configuration files. Co-authored-by: ehhuang <ehhuang@users.noreply.github.com>
This commit is contained in:
parent
b088665227
commit
9f1e4a07c9
2 changed files with 6 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ class StackRun(Subcommand):
|
|||
config = StackRunConfig(**cast_image_name_to_string(replace_env_vars(config_contents)))
|
||||
|
||||
port = args.port or config.server.port
|
||||
host = config.server.host or ["::", "0.0.0.0"]
|
||||
host = config.server.host or "0.0.0.0"
|
||||
|
||||
# Set the config file in environment so create_app can find it
|
||||
os.environ["LLAMA_STACK_CONFIG"] = str(config_file)
|
||||
|
|
@ -140,6 +140,7 @@ class StackRun(Subcommand):
|
|||
"lifespan": "on",
|
||||
"log_level": logger.getEffectiveLevel(),
|
||||
"log_config": logger_config,
|
||||
"workers": config.server.workers,
|
||||
}
|
||||
|
||||
keyfile = config.server.tls_keyfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue