kmp_cc_out_keepalive_interval
The `kmp_cc_out_keepalive_interval` directive specifies the interval for keep-alive connections in the Kaltura Media Framework.
Description
The kmp_cc_out_keepalive_interval directive is used within the Kaltura Media Framework Common NGINX Module to control the duration of keep-alive connections, improving efficiency in streaming media applications. By keeping connections open longer, it allows for reduced connection establishment overhead, ultimately benefiting performance and throughput while serving media content.
When configured, the directive accepts a single argument, which specifies the interval in seconds. This interval indicates how long the server should keep an idle connection open before closing it. This behavior is particularly useful in streaming scenarios where multiple requests may come from a client in quick succession. By managing the keep-alive settings effectively, network latency can be minimized, improving user experience during media playback.
However, setting this value too high could lead to resource depletion on the server, especially when dealing with a large number of simultaneous connections, so it’s essential to find a balance based on the expected load and usage patterns. Monitoring server performance while adjusting this setting is recommended to achieve optimal results.
Config Example
stream {
server {
kmp_cc_out_keepalive_interval 30;
}
}Setting the interval too high can exhaust available connections on the server, leading to connection issues.
If not properly managed, it can also cause increased memory usage on the server.