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

limit simultaneous process initialization #621

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

theomonnom
Copy link
Member

@theomonnom theomonnom commented Aug 13, 2024

  • avoid stressing the OS too much

@theomonnom theomonnom requested a review from a team August 13, 2024 14:26
Copy link

changeset-bot bot commented Aug 13, 2024

🦋 Changeset detected

Latest commit: 5b86307

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-agents Patch

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
Copy link
Member Author

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)

Copy link
Member

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?

Copy link
Member Author

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

@theomonnom theomonnom merged commit 806e943 into main Aug 13, 2024
8 checks passed
@theomonnom theomonnom deleted the theo/limit-concurrent-inits branch August 13, 2024 19:10
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