preset_names_hash_max_size

The 'preset_names_hash_max_size' directive sets the maximum size of the hash table for storing preset names in the Kaltura Media Framework module.

Syntaxpreset_names_hash_max_size size;
Defaultnone
Context
Arguments1

Description

The preset_names_hash_max_size directive is used in the Kaltura Media Framework Common NGINX Module to define the maximum number of hash buckets that can be allocated for storing preset names. This hash table is essential for optimizing the retrieval of preset configurations based on client requests, which is particularly important in media streaming applications where performance and speed are critical. By adjusting this value, users can manage memory usage and potentially improve the efficiency of name lookups for presets.

When this directive is set, the NGINX module allocates a hash table of the specified size for storing preset names. The hash size not only influences the speed of read operations but can also affect the overall performance of the application, especially when handling a large number of different preset configurations. It's important to find a balance—too small a hash size might lead to increased hash collisions, whereas too large a size may waste memory resources. This directive can thus be fine-tuned based on the expected load and the number of different presets the application will use. Typically, this should be set to a value that reflects the actual number of preset names in use, to optimize the hash table.

Config Example

preset_names_hash_max_size 512;

Setting this value too low can lead to performance degradation due to increased hash collisions.

If the application handles a significantly larger number of presets than expected, it may result in inefficient lookups or application errors.

← Back to all directives