Granting Plex Deployment More Resources

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
How can I give the Plex Pod/Deployment (K8S confuses me) more resources? My friend just hit me up saying that he's getting errors stating my server isn't fast enough to transcode the video files...it's a Threadripper 2970WX (24 cores at 3 GHz). When Plex is run natively the CPU laughs at transcoding 4K, I've had it doing 3 simultaneous 4K transcodes with no issues under Arch. It shouldn't be my storage either, even though I switched my transcoding directory from a single NVMe drive to my RAIDZ2 pool (2 vdevs of 6 drives w/mirrored metadata on NVMe) because with usenet downloads I can hit 1.5 GB/sec writes. All the folder mappings (config, transcode, media dirs) are using HostPath (simple).

I want it to be able to use about 75% of my available CPU threads and as much RAM as it needs, I've looked into K8S resource allocation before and it kinda confuses since since you can't directly allocate resources to it like you would in a VM. I have 128 GB RAM, most of which is currently used by the ARC.
 
Last edited:

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
Which Version did you Install?
Official App, truecharts App or big blue Launch docker Button?
With the truecharts App you can allocate resources, dont know about the Other two Versions
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Which Version did you Install? Official App, truecharts App or big blue Launch docker Button? With the truecharts App you can allocate resources, dont know about the Other two Versions

For the official Apps and big-blue-buton there are not limitations in place :)
For ours you can indeed increase the limits manually. But we generally only offer support by filing a support ticket towards our support staff on discord, so we'll leave it at that.
 

dbb12345

Dabbler
Joined
Jan 14, 2022
Messages
45
Used both and both work just fine. Switch to the official version and there are no limitations. Nothing worse then a stuttering video! Official version is very good at keeping updated also. I am sure truecharts is also but I think it is dependent on the maintainer of the specific app on truecharts to keep updated?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
1650921382470.png
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
Thanks, but it's also the values used, I'm not sure how to correlate that to something like allocating 24 CPU threads to a VM.

Edit: just read the tooltip and it says 1000m equals one hyperthread, so I set Advanced Limit Resource Consumption to 24,000m for CPU and 32 Gi for RAM and it seems to be better, at least for me.

Edit 2: Now it seems that the network connection is the issue Plex is transcoding 4K within my LAN because it says it needs 270 Mbps to stream a movie but only 200 Mbps is available. Both my server and Nvidia Shield are hardwired with ethernet and connected at 1 Gbps. My service type is "simple" and I'm using host networking.
 
Last edited:

dbb12345

Dabbler
Joined
Jan 14, 2022
Messages
45
Thanks, but it's also the values used, I'm not sure how to correlate that to something like allocating 24 CPU threads to a VM.

Edit: just read the tooltip and it says 1000m equals one hyperthread, so I set Advanced Limit Resource Consumption to 24,000m for CPU and 32 Gi for RAM and it seems to be better, at least for me.

Edit 2: Now it seems that the network connection is the issue Plex is transcoding 4K within my LAN because it says it needs 270 Mbps to stream a movie but only 200 Mbps is available. Both my server and Nvidia Shield are hardwired with ethernet and connected at 1 Gbps. My service type is "simple" and I'm using host networking.
No 4K should saturate even a wireless. What kind of 8k madness u watching?
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
my math was off haha should be 27 Mbps and 20 Mpbs. The Plex connection seems to be be pretty limited, and it's not because of the settings in Plex.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
I'm using host networking.

Servicetype simple with host-networking is not a good idea.
Actually: Unless you have a very specific usecase (hint: almost never the case) hostNetworking is a very bad idea.

It really would be best if you just file support tickets so our staff can help you through setting the App properly, which we're not able to do here on the forums.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Used both and both work just fine. Switch to the official version and there are no limitations.

If you disable/increase them neither with ours.

Official version is very good at keeping updated also. I am sure truecharts is also but I think it is dependent on the maintainer of the specific app on truecharts to keep updated?

We have actually a more strict update policy than the official Apps. Including digest pining and automatic (digest)updates for each App.
No idea where you get this wrong information though...
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Thanks, but it's also the values used, I'm not sure how to correlate that to something like allocating 24 CPU threads to a VM.

Edit: just read the tooltip and it says 1000m equals one hyperthread, so I set Advanced Limit Resource Consumption to 24,000m for CPU and 32 Gi for RAM and it seems to be better, at least for me.

Edit 2: Now it seems that the network connection is the issue Plex is transcoding 4K within my LAN because it says it needs 270 Mbps to stream a movie but only 200 Mbps is available. Both my server and Nvidia Shield are hardwired with ethernet and connected at 1 Gbps. My service type is "simple" and I'm using host networking.
To my knowledge, Plex is not anywhere near that RAM hungry. And shouldn't be quite that CPU hungry either
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
@NugentS it all depends on what you're trying to transcode and how large the files are, I'm definitely overcompensating though.

@truecharts Yeah I know you guys hate hostnetworking, I was having issues getting either the official app or the trucharts version to "see" my plex account (when I setup the container it wouldn't show any server, even with a claim token), the only way I could get it to work was to use the trucharts version and enable hostnetwork (the official version recommends hostnetworking for better performance, but that's not your version). I just attempted to disable it and the server can't access anything. I'll hop in the discord.

Edit: it appears that the issue is having "GDM Discovery" enabled in Plex's network settings. Disabling that fixes my bandwidth issues.
 
Last edited:

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Edit: it appears that the issue is having "GDM Discovery" enabled in Plex's network settings. Disabling that fixes my bandwidth issues.

This is most likely also why your server isn't showing up without hostNetworking on some Plex clients.
We've had multiple reports of that.

(the performance argument is also nonsense on any system meeting the minimumspecs though)
 
Top