Skip to content

Conversation

@ikondrat
Copy link
Contributor

What has changed and why?

This is PR fixes 2 issues because they are both about hitting limits. Depending on system state and it is one of them:

  • Hitting the limit or parallel TCP connections
    OSError: [Errno 24] Too many open files
  • Hitting the limit of sqlalchemy pool connections
    sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached,

Fix for this is:

  • increase pool size for sqlalchemy to 60
  • define concurrency parameters for uvicorn server, with defining

How has it been tested?

Check #212 to reproduce the issue

and follow the same steps on this PR, the issue should not be reproduced anymore

Copy link
Contributor

@michal-lightly michal-lightly left a comment

Choose a reason for hiding this comment

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

LGTM!

@ikondrat ikondrat enabled auto-merge (squash) November 28, 2025 13:36
@ikondrat ikondrat merged commit f831482 into main Nov 28, 2025
6 checks passed
@ikondrat ikondrat deleted the test-example-fix branch November 28, 2025 13:41
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.

4 participants