kmp_mem_low_watermark
The `kmp_mem_low_watermark` directive sets a threshold for memory usage in the Kaltura Media Framework, triggering actions when memory falls below a specified limit.
Description
The kmp_mem_low_watermark directive plays a critical role in managing system resources for the Kaltura Media Framework by establishing a memory threshold. When the memory consumption of the NGINX worker processes falls below this specified limit, the directive triggers specific actions designed to optimize the resource utilization of media components. This is particularly important in environments where media streaming demands fluctuate significantly, ensuring that the system can react promptly to low memory conditions.
This directive accepts a single argument, which specifies the low watermark threshold in bytes. The directive allows administrators to tailor the memory management behavior of the media framework according to the unique requirements of their deployment. By doing so, it helps maintain performance levels, especially in high-load scenarios where maintaining enough memory is crucial for transcoding and streaming operations.
Moreover, setting this directive properly can help in preventing a sudden drop in service performance during periods of high demand, thereby enhancing overall user experience. However, it is vital to monitor the actual memory usage and performance impacts closely, as setting it too low could lead to unnecessary resource-intensive processes being triggered.
Config Example
kmp_mem_low_watermark 104857600; # Sets the low watermark to 100MB
Ensure the value is set appropriately to avoid performance degradation.
A value that is too low may trigger actions unnecessarily, leading to increased overhead.
Monitor memory usage regularly to adjust this value as needed.