Table of Contents
Data Storage Model
- The backend should support storing storing video in multiple locations including NFS partitions.
- The backend should check at the 1 minute mark the current available space on the device its recording to and compute total record time * current size to see what estimated total size will be and move currently on that device to another or send it to another backend.
- The backend should attempt to use different storage devices for each recording.
- The backend should check every 5 minutes if it's going to run out of space and preform data offloading as necessary.
- The backend should flag the recording it is currently moving as "unavailable" until it finishes moving to the new locations.
- The backend should create a new record in the database for the final location but mark it as incomplete until the recording finishes copying.
- The backend should then delete the file and remove the old database entry.
