[MCP] Scale up ECS replicas and add uvicorn workers to fix gateway timeouts#57
Closed
vm-serpapi wants to merge 1 commit into
Closed
[MCP] Scale up ECS replicas and add uvicorn workers to fix gateway timeouts#57vm-serpapi wants to merge 1 commit into
vm-serpapi wants to merge 1 commit into
Conversation
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>
e484c6d to
8ec7181
Compare
adarshdigievo
requested changes
Jul 1, 2026
adarshdigievo
left a comment
Member
There was a problem hiding this comment.
@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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increase ECS task range from 3-6 to 5-15 and run 4 uvicorn workers per container.