dynamic_var_max_size
The `dynamic_var_max_size` directive sets the maximum size for dynamic variables in the Kaltura Media Framework module.
Description
The dynamic_var_max_size directive is utilized in the Kaltura Media Framework to define a limit on the size of dynamic variables processed during API requests. This directive is crucial when dealing with large or variable-sized data in a streaming environment, such as JSON payloads, which may fluctuate significantly based on user input or media metadata. By setting this limit, administrators can prevent excessive memory usage, which can lead to performance degradation or crashes in the server handling API calls.
By specifying a maximum size, the directive helps maintain system integrity by enforcing constraints on the size of incoming data that can be handled dynamically. If a request exceeds the specified limit, the module could reject it or return an error response, helping to mitigate resource exhaustion attacks. The unit of the specified size is in bytes, meaning that the directive expects a numerical value indicating the byte limit. Administrators must carefully adjust this value, balancing between allowing adequate data size for legitimate requests while ensuring the server remains performant and secure.
To apply this directive, it must be included in the relevant server or location block within the NGINX configuration file. If not specified, dynamic variables may potentially use an unlimited amount of memory, based on the operational limits set by the overall NGINX configuration and underlying system capabilities.
Config Example
dynamic_var_max_size 1048576; # Sets max size for dynamic variables to 1MB
Setting the value too low may cause legitimate requests to be rejected.
Not restarting NGINX after changing configuration changes won't apply the new settings.