Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

bitrate disbalance at caching - how the internals work?

$
0
0
Hi there,

I use nginx as reverse proxy with caching. At a test I can see 25Mbps steady inflow (nginx downloads from the origin) and 10Mbps outflow (nginx streams to the test client). I have default 8x4096 bytes of proxy buffers (any attempts to tune it yielded lower bitrates).

So nginx needs to accumulate 25-10=15Mbps locally, and I assume this is happening in the temp file that will become the cache file (md5'd name) right after downloading from the origin is over. By the way, we talk files of 3-4GB.

My problem is that outlowing 10Mbps is jerky, there are blackouts of half a second etc. How can I make sure that with growing gap between downloaded bytes and served bytes I still use the page cache? I actually believe I do use the page cache as the RAM is consumed by the file being processed in the end. Then I am stuck with the question why 10Mbps downstream is so jerky and has blackouts?

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>