-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Configuration: expire_interval for snapshots #14002
Comments
This would be a great addition so we can cut down on IO and let HDDs stay spun down for much longer |
To be clear you can already do this by mapping the clips directory separate from recordings |
Yeah that's definitely an option I've been considering, it's just that HDD space is at less of a premium than the cache's SSD for my system currently. |
Correct - and as per the description of the issue - this is the alternative currently in use to reduce spinning disk activity. However, having it configurable similar to recording would be the goal, as @jmot205 mentions, SSD space is a premium. Thanks for a great app |
How would I do this? I can't find anything about that in the docs. I added a new path to the docker container but idk what to put in the config. 'path: /clips/path' does not work under snapshots |
you don't define anything in the frigate config. |
Oh okay, the way unraid has the paths set up by default made 'media' all one folder with clips, recordings, and exports. But I figured out how to separate it, thanks |
Can you share, to help the next person who stumbles across this post. TIA |
Describe what you are trying to accomplish and why in non technical terms
I want to be able to configure the
expire_interval
ofsnapshots
so that Frigate can reduce disk activity.Describe the solution you'd like
In configuration, there is a
expire_interval
forrecord
; there is no such setting forsnapshots
. If I could set the interval forsnapshots
I could reduce disk activity.The default appears to be 300 seconds (every 5 minutes)
https://github.com/blakeblackshear/frigate/blob/master/frigate/storage.py#L213
Describe alternatives you've considered
I could move snapshots/clips to a different disk (e.g. a SSD) to prevent disks from spinning
Additional context
Debugging this as per #10611 (comment) and using
inotifywait
to identify what was causing the disk to spin; command below:The text was updated successfully, but these errors were encountered: