proxy_send_lowat
The 'proxy_send_lowat' directive specifies the low water mark for the proxy module's send buffer, affecting data transmission efficiency. — NGINX HTTP Core
Описание
The 'proxy_send_lowat' directive is used in the NGINX HTTP server to configure the low water mark for the proxy module's send buffer, measured in bytes. When the send buffer falls below this specified threshold, the NGINX worker process will increase the transmission rate of data to the client to avoid underutilization of the network connection. This helps improve network throughput, especially in the context of streaming data and proxying requests to upstream servers. The parameter for this directive must be supplied as an integer and it represents the minimum number of bytes that should remain in the send buffer before the NGINX process resumes sending data from the buffer again. Setting an appropriate value can enhance performance on high-latency links by ensuring that there is always enough data ready to be sent, helping to keep the connection busy. Conversely, setting the value too low may lead to inefficient usage of the available bandwidth as NGINX may constantly pause to check buffer status, negatively impacting performance. The directive can be used within the context of 'http', 'server', or 'location' blocks, giving administrators flexibility in configuring behavior at different levels of the server architecture. Proper tuning of this value can lead to noticeable improvements in response times and can optimize resource usage for applications subjected to varying loads, especially under a proxy setup.
Пример конфига
http {
proxy_send_lowat 16384;
}If set too low, it may lead to very frequent send operations, degrading performance.
Misunderstanding the buffer context can lead to underutilization of bandwidth if not configured properly.