mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
v0 num_workers
This commit is contained in:
parent
be1bbb2dcd
commit
7b1c8471c5
1 changed files with 2 additions and 0 deletions
|
@ -472,6 +472,8 @@ def run_server(
|
|||
# gunicorn app function
|
||||
return self.application
|
||||
|
||||
# before starting server, read num_workers as an env variable
|
||||
num_workers = os.getenv("NUM_WORKERS", num_workers)
|
||||
gunicorn_options = {
|
||||
"bind": f"{host}:{port}",
|
||||
"workers": num_workers, # default is 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue