mem_high_watermark
The `mem_high_watermark` directive sets the maximum memory limit for the Kaltura Media Framework ensuring efficient resource management during media processing.
Description
The mem_high_watermark directive is specific to the Kaltura Media Framework Common NGINX Module and is used to define a memory threshold beyond which additional memory usage is restrained to optimize performance and stability of the media processing components. When the memory usage exceeds the specified high watermark, the system may implement mechanisms to manage resources effectively, possibly by throttling requests or scaling back processing activities to prevent the system from being overburdened by memory-intensive operations.
This directive takes a single argument, which specifies the memory limit that the server should not exceed during its operations. By tuning this parameter, administrators can prevent excessive memory consumption, especially in a multi-component environment where processes like transcoding and real-time streaming can occasionally spike resource usage. Proper configuration of this directive is essential in maintaining the balance between resource utilization and service availability, particularly under heavy loads.
Config Example
mem_high_watermark 512M;
Setting this value too low may lead to performance degradation or service unavailability during peak usage times.
Not specifying this directive can lead to uncontrolled memory growth causing potential instability in media processing tasks.