persist_bucket_time
Sets the time duration for bucket persistence in the Kaltura Media Framework for NGINX.
Description
The persist_bucket_time directive in the Kaltura Media Framework for NGINX is used to define the duration for which request data should be kept in memory for processing. This directive is vital for managing how long the NGINX server will maintain state information related to media streaming requests before it gets discarded, essentially determining the persistence time for each request in a bucket. This can help optimize resource utilization by tidily managing how long an idle request might hold on to resources.
The directive can typically accept 2 to 3 parameters, with the first being the duration which specifies the time (in seconds) for how long the state should persist. Additionally, it may have optional parameters which could define behaviors such as what happens once the maximum time is reached or how to handle multiple requests within the same bucket. Properly configuring this directive is crucial for maintaining an efficient flow of media requests, as it directly affects how the server handles simultaneous streaming requests and manages system resources.
Config Example
persist_bucket_time 300;
Setting a very high persistence time can lead to memory exhaustion if many simultaneous requests are received.
Incorrectly configuring the optional parameters may lead to unexpected behaviors during high traffic situations.