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

feat: log the number of threads and workers during startup #826

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented May 29, 2024

This helps debug thread outage issues in prod.

Also, if only one CPU is available (common with cloud machines VMs), we start only 2 threads by default (so we can handle only 2 requests simultaneously).
What do you think about starting something like at least 4 (or event 8) threads by default @withinboredom?

@dunglas dunglas merged commit 90a7b98 into main May 30, 2024
43 checks passed
@dunglas dunglas deleted the feat/debug branch May 30, 2024 09:15
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.

None yet

1 participant