ts_kmp_buffer_bin_count

The `ts_kmp_buffer_bin_count` directive sets the number of Kaltura Media Framework bins for buffering streaming media.

Syntaxts_kmp_buffer_bin_count number;
Default1
Contextstream, stream server
Arguments1

Description

The ts_kmp_buffer_bin_count directive is a configuration setting used within the Kaltura Media Framework's NGINX module that defines the number of bins allocated for buffering media streams. Each bin serves as a storage space for segments of media data that are being processed and transmitted. By specifying a count for these bins, administrators can optimize resource allocation for streaming tasks, impacting performance and responsiveness during media delivery. Using too few bins can lead to bottlenecks if multiple streams are being processed simultaneously, while too many may lead to unnecessary consumption of memory resources.

This directive can be configured within the stream or stream server contexts, making it versatile for use in various deployment scenarios where media streaming is involved. The argument for this directive must be a positive integer, which specifies the number of bins to be created. Proper tuning of this value depends on the expected media load and the resource capabilities of the server. For instance, a higher bin count might be suitable for environments dealing with high concurrency of media streams, while a lower count could suffice in less-demanding setups.

It is critical to monitor performance and tweak this setting accordingly depending on the actual streaming load experienced by the server. In production scenarios, testing different configurations can help to find the optimal balance between resource usage and stream stability.

Config Example

stream {
    server {
        ts_kmp_buffer_bin_count 5;
    }
}

Using a value that is too low might result in stream lag or failures during high load situations.

Setting the count higher than necessary can lead to wasted memory resources and slower performance due to increased overhead.

← Back to all directives