Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to customize storage maintenance level #5847

Open
tkffaul opened this issue Mar 27, 2023 · 3 comments
Open

Ability to customize storage maintenance level #5847

tkffaul opened this issue Mar 27, 2023 · 3 comments
Labels
enhancement New feature or request pinned

Comments

@tkffaul
Copy link

tkffaul commented Mar 27, 2023

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 tkffaul added the enhancement New feature or request label Mar 27, 2023
@NickM-27 NickM-27 changed the title Storage Limits Ability to customize storage maintenance level Mar 27, 2023
@deosrc
Copy link

deosrc commented Feb 5, 2024

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.

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Feb 5, 2024

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

@deosrc
Copy link

deosrc commented Feb 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

3 participants