kmp_ctrl_timeout
The `kmp_ctrl_timeout` directive sets the timeout duration for the Kaltura Media Framework controller operations in NGINX.
Description
The kmp_ctrl_timeout directive is a configuration option provided by the Kaltura Media Framework Common NGINX Module. This directive specifies the maximum duration that the controller will wait for a response to JSON events communicated between the media components. If the timeout is exceeded, the operation will be aborted, preventing the system from hanging indefinitely during communication failures.
The parameter for this directive is a time value, which can be specified in various formats, such as seconds or milliseconds, depending on the required precision. By effectively managing timeouts, administrators can ensure that the Kaltura infrastructure remains responsive, particularly in environments where media processing requests may take varying lengths of time to complete. This ensures that components do not stall due to unresponsive services.
Configuring the right timeout is crucial because a value too high may lead to unnecessary delays in error handling and recovery mechanisms, while a value too low could lead to premature terminations of legitimate operations during brief network interruptions or processing delays. Properly tuning this directive is essential for maintaining system stability and performance during high loads or network fluctuations.
Config Example
kmp_ctrl_timeout 30s;
Setting the timeout too low may cause legitimate requests to fail before completion.
Ensure that all components of the Kaltura infrastructure are properly tuned to handle the timeout settings.