persist_media_path
The 'persist_media_path' directive specifies a path for persistent media storage in Kaltura Media Framework.
Description
The 'persist_media_path' directive is utilized in the Kaltura Media Framework to designate a directory where media files will be stored persistently. This is particularly crucial for environments that handle large volumes of media streaming, as it ensures that video and audio content is not just held temporarily, but rather is saved in a defined location for future access or processing. When configuring this directive, the specified path must be writable by the NGINX user and should ideally be on a higher-speed disk for better performance.
This directive takes one argument, which is the file path where media files will be preserved. If this path is not specified correctly or does not have the appropriate permissions, Kaltura Media Framework may fail to store the media, leading to potential service disruptions. The persistence of media files allows seamless operations, such as streaming and transcoding, while maintaining high reliability and access to the media assets.
It’s important for users to monitor the disk space in the specified directory, as media files can accumulate quickly, especially in environments with high streaming activity. Regular cleanup and maintenance routines should be implemented to manage the storage efficiently and avoid outages due to disk space limitations.
Config Example
persist_media_path /var/media/persistent;
Ensure that the specified path exists and is writable by the NGINX process to avoid failures in media storage.
Be cautious about disk space; accumulated media can quickly fill up the allocated storage, impacting performance.
Do not change the path frequently without proper migration of existing media files, as this can lead to broken links in media references.