frigate icon indicating copy to clipboard operation
frigate copied to clipboard

Ability to customize storage maintenance level

Open tkffaul opened this issue 1 year ago • 3 comments

I would like to still have some sort of storage limits... I'm running 12.0-10 and using a ZFS drive to store video/clips/snapshots... can we have a percent of full if were going to have it self manage on a drive. Filling a ZFS drive can be problematic...

tkffaul avatar Mar 27 '23 02:03 tkffaul

The storage maintenance seems to be preventing my Frigate instance from storing clips for any longer than 5 minutes. Not sure if this warrants a change from an enhancement to a bug?

I'm running in Kubernetes with a volume configured for /media. It's only 1GiB in size because I'm only storing clips for detection events. 24hr recording is handled separately on the CCTV box. From the log messages, it seems frigate is continuously removing any clips it saves because the volume isn't big enough for 1hr of recording. The storage space isn't really an issue when I am only storing ~20s clips.

deosrc avatar Feb 05 '24 16:02 deosrc

what you are describing is frigate working as expected, it needs at least 1 hour of free space to ensure it does not quickly run out. best solution is to provide it a bit more space and then limit the retention time so it won't run out

NickM-27 avatar Feb 05 '24 17:02 NickM-27

it needs at least 1 hour of free space to ensure it does not quickly run out.

I understand it's working as designed.

Under the current restrictions, I have to ensure there is always an additional 1.2GiB of free space in order for frigate to keep to the configured retention settings. Otherwise it will just delete files. When most of the clips are 3.3MiB in size, keeping 1.2GiB free seems excessive.

deosrc avatar Feb 05 '24 17:02 deosrc