From 3199e50d6db403d1879c78fb94812a534694e9b4 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Thu, 16 Nov 2023 11:53:32 +0100 Subject: [PATCH] feat(plex): default to ram transcodes (#14707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Currently we transcode to... somewhere, not really clear as `/transcode` shouldn't even be writeable. With this we make `/transcode` writeable and put all data there into ram. Plex should be able to handle detecting the size of `/transcode` and start eviciting chunks when it nears max size, hence the max size is set the the ram limit specified in `.Values.resources` **โš™๏ธ Type of change** - [x] โš™๏ธ Feature/App addition - [ ] ๐Ÿช› Bugfix - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] ๐Ÿ”ƒ Refactor of current code **๐Ÿงช How Has This Been Tested?** **๐Ÿ“ƒ Notes:** Not making this configurable on SCALE, SCALE machines should have plenty of ram and just should start evicing a bit of ARC when this ramdisk start to grow. **โœ”๏ธ Checklist:** - [x] โš–๏ธ My code follows the style guidelines of this project - [x] ๐Ÿ‘€ I have performed a self-review of my own code - [x] #๏ธโƒฃ I have commented my code, particularly in hard-to-understand areas - [x] ๐Ÿ“„ I have made corresponding changes to the documentation - [x] โš ๏ธ My changes generate no new warnings - [x] ๐Ÿงช I have added tests to this description that prove my fix is effective or that my feature works - [x] โฌ†๏ธ I increased versions for any altered app according to semantic versioning **โž• App addition** If this PR is an app addition please make sure you have done the following. - [x] ๐Ÿชž I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [x] ๐Ÿ–ผ๏ธ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/stable/plex/Chart.yaml | 2 +- charts/stable/plex/values.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/stable/plex/Chart.yaml b/charts/stable/plex/Chart.yaml index 62e6d916f73..19410236665 100644 --- a/charts/stable/plex/Chart.yaml +++ b/charts/stable/plex/Chart.yaml @@ -21,7 +21,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/plex - https://github.com/k8s-at-home/container-images/pkgs/container/plex type: application -version: 14.0.13 +version: 14.1.0 annotations: truecharts.org/category: media truecharts.org/SCALE-support: "true" diff --git a/charts/stable/plex/values.yaml b/charts/stable/plex/values.yaml index 042fca00bd5..8606547a27e 100644 --- a/charts/stable/plex/values.yaml +++ b/charts/stable/plex/values.yaml @@ -14,6 +14,13 @@ persistence: config: enabled: true mountPath: "/config" + transcode: + enabled: true + mountPath: "/transcode" + type: emptyDir + medium: Memory + size: "{{ $.Values.resources.limits.memory }}" + targetSelectAll: true plex: # User Defined