kmp_cc_out_mem_low_watermark

The `kmp_cc_out_mem_low_watermark` directive sets the memory low watermark threshold for Kaltura Media Framework's connections.

Syntaxkmp_cc_out_mem_low_watermark value;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_cc_out_mem_low_watermark directive is used in Kaltura Media Framework’s NGINX module and serves a crucial role in managing memory allocation for streaming media connections. Specifically, this directive defines a threshold that indicates the minimum amount of available memory required to ensure smooth operation during media streaming tasks. When the memory usage falls below this threshold, the system may take actions to manage resources, such as scaling back the number of active connections or initiating cleanup processes to prevent performance degradation.

This directive expects a single argument, which is an integer value representing the memory size (often specified in bytes). Setting this value appropriately is vital; if it is too low, the platform may struggle in high-load scenarios where more resources are required. Conversely, setting it too high can lead to underutilization of available memory resources. The behavior of the directive is particularly important in environments where memory management plays a significant role in maintaining performance, such as during peak streaming periods when resources are under significant stress.

Config Example

stream {
    server {
        kmp_cc_out_mem_low_watermark 1024000;
    }
}

Ensure the value is set considering the total available memory to avoid service disruption.

Values should be tuned based on empirical performance testing to align with the application's needs.

← Back to all directives