Skip to content

[MCP] Scale up ECS replicas and add uvicorn workers to fix gateway timeouts#57

Closed
vm-serpapi wants to merge 1 commit into
mainfrom
serpapi-mcp/scale-up-uvicorn-replacicas
Closed

[MCP] Scale up ECS replicas and add uvicorn workers to fix gateway timeouts#57
vm-serpapi wants to merge 1 commit into
mainfrom
serpapi-mcp/scale-up-uvicorn-replacicas

Conversation

@vm-serpapi

Copy link
Copy Markdown
Member

Increase ECS task range from 3-6 to 5-15 and run 4 uvicorn workers per container.

Increase ECS task range from 3-6 to 5-15 and run 4 uvicorn workers
per container (configurable via WEB_CONCURRENCY) to better utilize
the 2 vCPUs per task. This takes max concurrent request handlers from
6 to 60.

Co-authored-by: Cursor <cursoragent@cursor.com>

@adarshdigievo adarshdigievo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vm-serpapi The Docker run fails with the error:

"WARNING: You must pass the application as an import string to enable 'reload' or 'workers'."

uvicorn.run() in server.py always fails when the worker argument is passed directly.

I have added an alternate implementation in #58

@vm-serpapi vm-serpapi closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants