blakeblackshear / blakeshome-charts

Repo for helm charts
45 stars 58 forks source link

Add support for tmpfs as /tmp mount #66

Open muchtall opened 4 months ago

muchtall commented 4 months ago

According to the installation documentation (https://docs.frigate.video/frigate/installation/#storage), /tmp/cache should be a tmpfs mount:

/tmp/cache: Cache location for recording segments. Initial recordings are written here before being checked and converted to mp4 and moved to the recordings folder. Segments generated via the clip.mp4 endpoints are also concatenated and processed here. It is recommended to use a tmpfs mount for this.

(my emphasis added)

I had actually started to run into issues with write operations over NFS due to this not being implemented. This was resulting is lots of errors like this:

WARNING : Unable to keep up with recording segments in cache for (camera). Keeping the 6 most recent segments out of (x) and discarding the rest...

Once I added a 1Gi tmpfs mounted to /tmp to the helm chart, the issues went away.

I'll open a pull request for this change shortly.