Welcome! Log In Create A New Profile

Advanced

proxy_cache

January 12, 2012 04:34AM
Hello Colleagues,

I found a performance issue with proxy_cache module.

For example I have installed 2 servers with nginx-1.0.10. First one(A)
works as a reverse proxy and the second one(B) is a storage with many
big files -- 1GB -- 2GB.

The link between A and B for example may serve 1 MBps.

There is a new object on B and it is not yet cached on A.

Let we assume this is a hot new object and A receives 1000 requests for
3 seconds for it. Because the object is not cached the requests will
pass through upstream to B and incoming 1000 streams will be saved on A
in tmp directory as a separate files. After every request has completed
the files from tmp directory will be moved to cache directory. 1000
equal operations for one and the same object. In addition every object
will be cached slow because there are 999 other streams.

This 1 GB object will be downloaded 1000 times before it may be cached
and this is not optimal at all.

Am I missing something? It may be my configuration issue?

Is there a solution for that?

Cheers
Anatoli Marinov

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

proxy_cache

toli 1779 January 12, 2012 04:34AM

Re: proxy_cache

Andrew Alexeev 656 January 12, 2012 04:34AM

Re: proxy_cache

toli 725 January 12, 2012 04:50AM

Re: proxy_cache

António P. P. Almeida 667 January 12, 2012 07:32AM

Re: proxy_cache

toli 790 January 12, 2012 07:42AM

Re: proxy_cache

Maxim Dounin 648 January 12, 2012 07:36AM

Re: proxy_cache

toli 753 January 12, 2012 07:52AM

Re: proxy_cache

toli 897 January 13, 2012 07:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready