mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Metadata Refreshing is not able to be rate limited #6161
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#6161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PhantomPhoton on GitHub (Aug 1, 2024).
This issue respects the following points:
Description of the bug
I recently changed metadata providers and ran a scan to update missing metadata, however, our internet connection is very limited and the scan is triggering hundreds of simultaneous requests, flooding the network connection and making it unusable. This most certainly isn't nice behavior for our metadata providers. There should be a sane default for the maximum number of outbound requests to a provider and hopefully be able to be adjusted for those of us on very slow connections.
Reproduction steps
Scan for missing metadata on a library with a lot of missing metadata. Watch the active number of connections increase to very high levels.
What is the current bug behavior?
I've seen over 256 active simultaneous requests at a time. This is causing failures as sockets time out due to being flooded by too much traffic.
What is the expected correct behavior?
Less simultaneous requests and so we can make slow, steady progress
Jellyfin Server version
10.9.8+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
10.9.8
Specify the build version
10.9.8
Environment
Jellyfin logs
FFmpeg logs
No response
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
Thank you all very much for the wonderful software. I really appreciate your time and consideration for my report.
@felix920506 commented on GitHub (Aug 1, 2024):
What CPU are you using?
Also, we recommend that you head to our forum or chat rooms for some way to mitigate the issue, such as configuring QoS or some per client bandwidth limit for the entire network. https://jellyfin.org/contact
@gnattu commented on GitHub (Aug 1, 2024):
I think you can limit concurrency for the whole library scan in Dashboard->General->Scroll down to Performance.
Set it to a lower value will also limit the API request frequency when you have a CPU with a lot of cores.
@PhantomPhoton commented on GitHub (Aug 1, 2024):
Ahh! Thank you for that hint, I am running on a multicore system with 44/88 physical/logical, and will try to reduce the value.
My main point was less that it wasn't changeable on my end, but more that it's not very nice to flood our metadata providers, however, I see that it's more of an issue with my system rather then a systemic issue. Please accept my apology for not knowing about those specific settings.