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

playlist upload backoff #779

Merged
merged 3 commits into from
Sep 24, 2024
Merged

playlist upload backoff #779

merged 3 commits into from
Sep 24, 2024

Conversation

frostbyte73
Copy link
Member

Uploads once every N updates where N is the number of hours (when using the default duration) that have passed

@frostbyte73 frostbyte73 requested a review from a team as a code owner September 19, 2024 19:31
func (s *SegmentSink) shouldUploadPlaylist() bool {
// with the default of 6s segments, this will upload every update for the first hour, then every
// other update for the second, every third update for the third, etc.
return s.segmentCount < 600 || s.segmentCount%(s.segmentCount/600) == 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we cap the interval between uploads? Uploading every 30 segments for broadcasts > 30h means you can miss up to 3min of broadcast if the pod crashes. Maybe upload at least once every 10 segments?

Copy link
Member Author

@frostbyte73 frostbyte73 Sep 19, 2024

Choose a reason for hiding this comment

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

forgot to push that change, I'll update

@frostbyte73 frostbyte73 merged commit ae762f1 into main Sep 24, 2024
8 checks passed
@frostbyte73 frostbyte73 deleted the playlist-upload-backoff branch September 24, 2024 02:27
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