Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use uvicorn to start multiple processes when deploying? #1492

Open
2 of 15 tasks
LZC6244 opened this issue May 7, 2024 · 0 comments
Open
2 of 15 tasks

How to use uvicorn to start multiple processes when deploying? #1492

LZC6244 opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working Waiting for reply

Comments

@LZC6244
Copy link

LZC6244 commented May 7, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

3.10

DB-GPT version

main

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

无需

Models information

无需

What happened

目前 docker-compose.yml webserver 中配置为:command: python3 dbgpt/app/dbgpt_server.py

期望可以如 uvicorn "main:app" --host 0.0.0.0 --port 5000 --no-access-log --workers 2 启动

What you expected to happen

希望能用 uvicorn 部署,使用多个 worker

How to reproduce

使用 docker-compose 运行即可

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@LZC6244 LZC6244 added bug Something isn't working Waiting for reply labels May 7, 2024
@Aries-ckt Aries-ckt changed the title 怎么使用 uvicorn 部署时启动多个进程? How to use uvicorn to start multiple processes when deploying? May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant