store_http_read_buffer_size

The `store_http_read_buffer_size` directive specifies the size of the read buffer used for storing HTTP request data in the Kaltura Media Framework.

Syntaxstore_http_read_buffer_size size;
Defaultnone
Context
Arguments1

Description

The store_http_read_buffer_size directive is utilized within the Kaltura Media Framework's NGINX module to control the size of the buffer that temporarily holds incoming HTTP request data. When a request is made to the server, the data is read from the network and stored in a buffer before being processed. This directive allows administrators to set the buffer size to accommodate large requests, which is particularly useful for handling substantial media files or payloads in live streaming scenarios, preventing server overhead or data loss due to inadequate buffer space.

The argument for this directive is a single integer value that defines the size of the buffer in bytes. Additionally, having the appropriate buffer size can enhance performance by ensuring that the server can efficiently manage the incoming data without requiring frequent memory reallocations. However, excessively large values may lead to wasted memory resources. It is essential to balance this setting according to the expected request sizes and the server’s available memory.

In practice, when this setting is configured, NGINX will allocate the specified amount of memory for reading HTTP requests, ensuring it can accept a certain level of concurrent reads without blocking or dropping packets. Administrators are encouraged to monitor performance metrics to fine-tune this setting appropriately for their deployment use cases.

Config Example

store_http_read_buffer_size 1048576;  # Set buffer size to 1MB

Setting the buffer size too low may lead to data loss during large requests.

Exceeding available memory can degrade overall server performance.

This directive should be tested under load to find the optimal buffer size.

← Back to all directives