Welcome! Log In Create A New Profile

Advanced

bitrate disbalance at caching - how the internals work?

Posted by psvz 
bitrate disbalance at caching - how the internals work?
August 28, 2015 09:12AM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready