kmp_cc_in_buffer_size
The `kmp_cc_in_buffer_size` directive specifies the size of the input buffer for Kaltura Media Protocol (KMP) connections.
Description
The kmp_cc_in_buffer_size directive configures the size of the input buffer for incoming Kaltura Media Protocol (KMP) connections within NGINX's Kaltura Media Framework. This buffer size influences how much data can be buffered from the stream before it is processed. If the buffer size is set too small, it may lead to underutilization of network bandwidth, as incoming data may need to be processed frequently without taking full advantage of available network capacity. Conversely, excessively large buffers can lead to increased latency in understanding and reacting to stream conditions, potentially causing delays in data handling and response times.
The parameter for this directive is a single integer value that determines the buffer size in bytes. Administrators tuning this directive should consider the expected stream throughput and the network conditions, as well as the type of content being delivered. For high-bitrate streams, a larger buffer size may be appropriate to allow for smooth playback and processing, while lower-bitrate streams might not require as large a buffer, thus conserving resources. Proper configuration will help optimize streaming performance and reduce the risk of stream interruptions or delays.
Config Example
stream {
server {
listen 1234;
kmp_cc_in_buffer_size 256k;
}
}Setting the buffer size too small may cause frequent buffer flushes, leading to inefficient streaming performance.
Excessively high buffer sizes can increase latency in the stream processing, making real-time adjustments slower.
Incorrectly configuring the buffer size can affect the overall quality of service, leading to buffering issues if the network conditions are suboptimal.