-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add automatic session limit and set max sessions with livepeer_cli #2781
Add automatic session limit and set max sessions with livepeer_cli #2781
Conversation
* Dynamic session limit * Added -maxSessions 'auto' option * Remove commented code * Update MaxSessions description * update log --------- Co-authored-by: Elite Encoder <[email protected]>
…-set-with-t-capacity
Codecov Report
@@ Coverage Diff @@
## master #2781 +/- ##
===================================================
- Coverage 56.70668% 56.50320% -0.20348%
===================================================
Files 88 88
Lines 19160 19229 +69
===================================================
Hits 10865 10865
- Misses 7699 7765 +66
- Partials 596 599 +3
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Great work! A small note on |
I agree we should do this, I considered it when coding because the type conversions from string to int are a bit of overhead. I think we can apply a "default session limit" of 0 sessions for orchestrators, and make "0" the indicator for
I agree, this is something we could build on a separate issue. I thought of making it so that transcoders can change their session limits while running, but it seemed problematic because the |
Please can you link the issue that this responds to? |
#1935 Thanks for your review and feedback :) |
@eliteprox I'm catching up with PRs, is this PR ready for review? If yes, then please fix the CI builds failures, update the branch, and assign me as reviewer. Thanks! |
I agree, I will revert this back to |
… add message for maxSessions auto and combined O/T
Tests are passing on local test suite |
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.
Added some final nit comments. Other than that it looks good 👍
Thanks for the PR.
Co-authored-by: Rafał Leszko <[email protected]>
What does this pull request do? Explain your changes. (required)
Defines a new "auto session limit" for orchestrators based on the combined remote transcoder capacity that can be set by using
-maxSessions auto
or the livepeer_cli option 21.Specific updates (required)
-maxSessions auto
as an option for orchestators.How did you test each of these updates (required)
livepeer_max_sessions_total
while adding and removing transcoders with-maxSessions auto
livepeer_max_sessions_total
while using Option 21 Set Max Sessions in livepeer_cli to various numbers and 'auto'-broadcaster
and-transcoder
are not affected by the session limit changesDoes this pull request close any open issues?
Fixes #1935
Checklist:
make
runs successfully./test.sh
pass