frigate: Configuration: expire_interval for snapshots
Describe what you are trying to accomplish and why in non technical terms
I want to be able to configure the expire_interval of snapshots so that Frigate can reduce disk activity.
Describe the solution you’d like
In configuration, there is a expire_interval for record; there is no such setting for snapshots. If I could set the interval for snapshots 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 https://github.com/blakeblackshear/frigate/discussions/10611#discussioncomment-10772586 and using inotifywait to identify what was causing the disk to spin; command below:
inotifywait -m -r /mnt/disk2/cctv | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0; fflush() }'
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 3
- Comments: 20
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 it’s a docker function not Unraid, but in general it’s best to not have redundant mappings
I think I figured it out. You remove the original mapping, then manually add 3 new paths: https://imgur.com/a/GHhLJup
Then you can have exports and the recordings path continue to move to array, while the clips can stay in cache. @c4talyst @sevenmp
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