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

Re-use Manifest ID with local B to avoid creating new sessions #121

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

thomshutt
Copy link
Contributor

This is the second part of a fix for #113

We were seeing very slow transcode times and lots of logs where the B was struggling to find an O because we were passing in a blank manifestID and so it
was creating a new session for each segment.

@@ -61,19 +61,16 @@ type EncodedProfile struct {
ChromaFormat int32 `json:"chromaFormat,omitempty"`
}

var client = &http.Client{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did some testing and didn't see any negative performance impact from reusing the HTTP client and Transport.

@codecov
Copy link

codecov bot commented Oct 31, 2022

Codecov Report

Merging #121 (742a6c0) into main (f004b4b) will increase coverage by 0.72626%.
The diff coverage is 30.76923%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main        #121         +/-   ##
===================================================
+ Coverage   38.98635%   39.71261%   +0.72626%     
===================================================
  Files             24          24                 
  Lines           1539        1531          -8     
===================================================
+ Hits             600         608          +8     
+ Misses           861         844         -17     
- Partials          78          79          +1     
Impacted Files Coverage Δ
api/http.go 54.28571% <0.00000%> (ø)
clients/broadcaster.go 0.00000% <ø> (ø)
clients/broadcaster_local.go 0.00000% <0.00000%> (ø)
handlers/misttriggers/recording_end.go 20.30075% <0.00000%> (+1.41963%) ⬆️
handlers/transcode.go 40.74074% <0.00000%> (ø)
handlers/upload.go 51.38889% <ø> (-0.66590%) ⬇️
transcode/manifest.go 73.91304% <55.55556%> (ø)
transcode/transcode.go 47.05882% <78.57143%> (+3.72549%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7c0e57...742a6c0. Read the comment docs.

Impacted Files Coverage Δ
api/http.go 54.28571% <0.00000%> (ø)
clients/broadcaster.go 0.00000% <ø> (ø)
clients/broadcaster_local.go 0.00000% <0.00000%> (ø)
handlers/misttriggers/recording_end.go 20.30075% <0.00000%> (+1.41963%) ⬆️
handlers/transcode.go 40.74074% <0.00000%> (ø)
handlers/upload.go 51.38889% <ø> (-0.66590%) ⬇️
transcode/manifest.go 73.91304% <55.55556%> (ø)
transcode/transcode.go 47.05882% <78.57143%> (+3.72549%) ⬆️

@emranemran emranemran merged commit c316c33 into main Oct 31, 2022
@emranemran emranemran deleted the manifest-id branch October 31, 2022 23:49
iameli pushed a commit that referenced this pull request Feb 7, 2023
#121)

* mapic: Store pushed bytes/minutes on pushInfo object

* mapic: Store pushed time as duration

* mapic: Accumulate prometheus metrics for multistream

* mapic: Only save pushed time/bytes if increasing

* metrics: Reorder multistream metrics

* mapic: Init multistream metrics on stats collector

* metrics: Fix view description
iameli pushed a commit that referenced this pull request Feb 7, 2023
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