mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-25 05:35:32 -04:00
[PR #168] [CLOSED] feat: Add multi-worker support for uvicorn deployment #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/168
Author: @LYH-RAIN
Created: 6/4/2025
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (3)
5138163feat: Add multi-worker support for uvicorn deployment7f6510bfeat: Add multi-worker support for uvicorn deployment648354bfeat: Add multi-worker support for uvicorn deployment📊 Changes
7 files changed (+1179 additions, -307 deletions)
View changed files
📝
README.md(+37 -4)📝
pyproject.toml(+5 -1)📝
src/mcpo/__init__.py(+10 -0)📝
src/mcpo/main.py(+461 -196)➕
src/mcpo/tests/test_multi_worker.py(+462 -0)📝
src/mcpo/utils/auth.py(+9 -13)📝
src/mcpo/utils/main.py(+195 -93)📄 Description
feat: Add multi-worker support and clean up unused dependencies
Improves application throughput and CPU utilization on multi-core systems.
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.✅Changelog Entry
Description
Add multi-worker support to uvicorn deployment for improved performance and resource utilization on multi-core systems. This enhancement enables better handling of concurrent requests and maximizes CPU utilization. Also clean up unused dependencies to reduce package footprint and improve installation speed.
Added
--workersparameterget_app()) for proper multi-worker initializationChanged
run()function to support both single and multi-worker deployment modes--workersparameter and validationFixed
Security
Breaking Changes
Additional Information
Performance Impact:
min(CPU_CORES * 2, 32)Configuration:
--workersCLI parameterTesting:
Documentation Updates:
Code Quality:
Related Issues
Testing Commands Used
Deployment tested on: