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

fix(cloud): Avoid rate limit issues on live streams #162

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

joeyparrish
Copy link
Member

To avoid rate limit failures (HTTP 429 "Too many requests"), avoid writing to the same file multiple times per second. This happens only on MPD and M3U8 files.

To avoid rate limit failures (HTTP 429 "Too many requests"), avoid writing to
the same file multiple times per second.  This happens only on MPD and M3U8
files.
@joeyparrish
Copy link
Member Author

With these settings, I'm seeing about 1/3 of our upload requests end up rate-limited. Of those, about 75% are the MPD and the other 25% are M3U8 files. After 50k upload requests, none returned 429 or 500.

@joeyparrish joeyparrish requested a review from theodab October 23, 2024 03:30
Copy link
Member

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

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

LGTM

streamer/proxy_node.py Outdated Show resolved Hide resolved
@joeyparrish
Copy link
Member Author

Updates appear to be working. Thanks for the review!

@joeyparrish joeyparrish merged commit 1231502 into shaka-project:main Oct 23, 2024
2 checks passed
@joeyparrish joeyparrish deleted the proxy branch October 23, 2024 18:50
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Dec 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants