mem_low_watermark

The 'mem_low_watermark' directive sets the memory usage threshold for the Kaltura media framework, triggering actions when the memory reaches this limit.

Syntaxmem_low_watermark value;
Defaultnone
Context
Arguments1

Description

The 'mem_low_watermark' directive is a configuration parameter for the Kaltura Media Framework's NGINX module, designed to manage memory usage. It defines a threshold, in bytes, which when crossed, will prompt the framework to take specified actions to reclaim memory and prevent the system from entering a low memory state. This is crucial in a media streaming environment where memory allocation is directly tied to performance and quality of service. The directive works in conjunction with memory management strategies within the framework, ensuring that media processing and serving can continue optimally without experiencing issues due to insufficient memory.

By setting the 'mem_low_watermark', administrators can preemptively define how low the available memory can drop before the system starts limiting new allocations or recycling resources. This is particularly important when handling video streams, which can be resource-intensive. Proper tuning of this directive helps maintain performance stability across streams, especially under heavy load scenarios. Values set too low may trigger unnecessary memory recycling, while values set too high risk memory exhaustion, affecting service reliability.

Config Example

mem_low_watermark 50000000;  # 50 MB low watermark threshold

Setting a value that is too low may lead to frequent memory recycling, causing performance issues.

If the value is set excessively high, the system may run out of memory unexpectedly, impacting service availability.

← Back to all directives