Network Load Balancing Jellyfin and Torrents reddit / selfhosted ---------------------------------------------------------------------- synthesis_of_matter · 2023-12-30 08:35 Hi, a bit on my config: 1 gbit server running sonarr, qbittorrent, jellyfin, and other *arr apps in docker containers. I currently route all torrent downloads through a wireguard vpn. Problem: When I download lots of media, I am unable to stream on Jellyfin without it being choppy. Potential solutions: 1. Limit download speed in download client. This works, but then the download speed is also slow when not using Jellyfin. Plus, if running multiple download clients like usenet, it doesn't rlly work. For instance, if a 1 qbit connection allows for 125 MBps. I could limit download to 75 MBps. This would roughly allow for 50 MBps of connection for Jellyfin (a bit of an oversimplification but anywho). However, I run multiple download clients and also a usenet client. So, it doesn't rlly work unless I want really slow download speeds. 2. Somehow load balance were Jellyfin get priority and then the other containers fight over remaining speed. What would be the simplest way to implement this? I am currently using docker-reverse-caddy as a reverse proxy for my docker containers. ---------------------------------------------------------------------- lilolalu · 2023-12-30 09:31 You didn't mention if you have a proper firewall in front of your home network. Which is advisable from a security point of view but also practical for things like Quality Of Service or bandwidth management. This is built into something like pfsense and opnsense. You can do it directly on your server but traffic shaping from the CLI has a steep leaning curve: https://wiki.archlinux.org/title/advanced_traffic_control ---------------------------------------------------------------------- blackstar2043 · 2023-12-30 11:01 Prioritizing specific subnets or ports that your containers are using with [FireQoS](https://firehol.org/tutorial/fireqos-new-user/) is a way to do this. ---------------------------------------------------------------------- AuthorYess · 2023-12-30 11:39 Too many problems it could be, you’re only running one slow drive for data and not an array? So reading and writing causing issues while torrenting because it's a very write and read intensive process especially with multiple torrents. If you’re remotely accessing, your upload speed probably is too low and can’t handle torrents since it's upload and download. You could be using a raspberry pi which doesn’t have the internal bandwidth to handle data or some other similar problem. You could have low ram, limiting the ability to cache it into jellyfin. So it could be any number of these things. Consider moving your torrenting to a separate drive or something. But overall need more information. ---------------------------------------------------------------------- Stickus · 2023-12-31 01:41 This is the answer. Making sure you have a decent router with QoS is essential. ---------------------------------------------------------------------- synthesis_of_matter · 2023-12-31 07:46 I'll take a look into it. I currently am lazy with my firewall and just use ufw. Might be work learning tho. It's a Hetzner server btw. Got it on the auction site for cheap. So no home network lol. ---------------------------------------------------------------------- synthesis_of_matter · 2023-12-31 07:48 Hmm... this is actually a really good answer. I might look into drive speeds. That could be the root of the issue. I currently have two 4 TB drives in raid0. Both are fairly slow tho. I might see if I can upgrade to having a separate drive for (preferrably ssd for torrenting). It's a hetzner server btw. Should have mentioned in post.