-
Notifications
You must be signed in to change notification settings - Fork 419
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
limit simultaneous process initialization #621
Conversation
theomonnom
commented
Aug 13, 2024
•
edited
Loading
edited
- avoid stressing the OS too much
🦋 Changeset detectedLatest commit: 5b86307 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -14,6 +14,8 @@ | |||
"process_created", "process_started", "process_ready", "process_closed" | |||
] | |||
|
|||
MAX_CONCURRENT_INITIALIZATIONS = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exposing this value for now (simplicity)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when do we need to create more than 3 concurrent processes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It generally happens at startup. Otherwise it happens when you start to receive more jobs than the num_idle_processes