Welcome! Log In Create A New Profile

Advanced

Re: bad performance with nginx cache

August 27, 2010 06:58AM
On Fri, Aug 27, 2010 at 02:10:50PM +0400, Franchoze Eric wrote:

> Hello,
>
> On these week I tried speed up nginx work with turning on cache for graphics files specified by extentions (jpg, png, bmp, etc.) in config file. On system without any load client (web browser) loaded pages for the same time - with cache or without cache. But after installing same configuration on real server I realized the following issue:
>
> 1. Nginx can not speed up more then 150Mbit/s is cache is no hard drive. Can speed up to 200Mbit/s if cache is on tmpfs.
> 2. Load time from client begins to be 2-3 times lager then without cache if traffic is about 150Mbit/s. This happens for all files even if they were not specified in nginx.conf.
>
> Does anybody have successful nginx cache run with throughput 500-600Mbit/s? Does it speed up or lower end client page load speed?
>
> My configuration is SMP machine with nginx worker per cpu.
> proxy_cache_path /var/www/cache2 levels=1:2 keys_zone=my-cache:512m max_size=3000m inactive=10m;
> proxy_temp_path /var/www/cache2/tmp;
> proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";

Also, you do not need this ugly proxy_cache_key, use default one instead.


--
Igor Sysoev
http://sysoev.ru/en/

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

bad performance with nginx cache

Franchoze Eric 3595 August 27, 2010 06:26AM

Re: bad performance with nginx cache

Igor Sysoev 1102 August 27, 2010 06:48AM

Re: bad performance with nginx cache

Igor Sysoev 906 August 27, 2010 06:58AM

Re: bad performance with nginx cache

Franchoze Eric 1241 August 30, 2010 06:16AM

Re: bad performance with nginx cache

Boris Dolgov 1093 August 30, 2010 06:28AM

Re: bad performance with nginx cache

Igor Sysoev 960 August 30, 2010 11:42AM

Re: Re: bad performance with nginx cache

Franchoze Eric 813 August 30, 2010 02:58PM

Re: Re: bad performance with nginx cache

Igor Sysoev 1102 August 31, 2010 08:44AM

Re: bad performance with nginx cache

Franchoze Eric 1166 September 02, 2010 03:46PM



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

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready