Welcome! Log In Create A New Profile

Advanced

RE: which one is better?

Glen Lumanau
April 21, 2009 07:38AM
http://pastebin.com/d45d76e4d



-----Original Message-----
From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Igor
Sysoev
Sent: 21 April 2009 17:57
To: nginx@sysoev.ru
Subject: Re: which one is better?

On Tue, Apr 21, 2009 at 05:51:57PM +0700, Glen Lumanau wrote:

> [root@mp-ws-06 nginx-0.7.52]# tail -f /var/log/nginx/error.log | grep data
> 2009/04/21 17:51:21 [debug] 30424#0: cache file:
> "/data/nginx/cache/3/06/6fecda1e6dc4d639bbfabfe771b63063"
> 2009/04/21 17:51:21 [debug] 30424#0: cache file:
> "/data/nginx/cache/8/00/7df93c5fa8eb0301382ec66dc9e54008"
> 2009/04/21 17:51:23 [debug] 30425#0: cache file:
> "/data/nginx/cache/5/db/bc8df465ca5a5c053713a34370befdb5"
> 2009/04/21 17:51:24 [debug] 30424#0: cache file:
> "/data/nginx/cache/5/db/bc8df465ca5a5c053713a34370befdb5"
> 2009/04/21 17:51:24 [debug] 30424#0: cache file:
> "/data/nginx/cache/c/94/179da50f035455138b0ac1070c64494c"
>
> [root@mp-ws-06 nginx-0.7.52]# cd /data/nginx/cache/
> [root@mp-ws-06 cache]# ls -al
> total 8
> drwx------ 2 kompastv root 4096 Apr 21 15:36 .
> drwxr-xr-x 4 root root 4096 Apr 21 15:36 ..

Could you run

egrep 'cacheable|error|crit' /var/log/nginx/error.log

?

> -----Original Message-----
> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of
Igor
> Sysoev
> Sent: 21 April 2009 17:32
> To: nginx@sysoev.ru
> Subject: Re: which one is better?
>
> On Tue, Apr 21, 2009 at 04:02:57PM +0700, Glen Lumanau wrote:
>
> > How do i check that? Becase i'm using default configuration
>
> If you use Firefox:
> http://livehttpheaders.mozdev.org
>
> Could you create debug log ?
>
> > -----Original Message-----
> > From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of
> Igor
> > Sysoev
> > Sent: 21 April 2009 15:54
> > To: nginx@sysoev.ru
> > Subject: Re: which one is better?
> >
> > On Tue, Apr 21, 2009 at 03:44:28PM +0700, Glen Lumanau wrote:
> >
> > > I already tried this
> > >
> > > Here's the config
> > >
> > > fastcgi_cache_path /data/nginx/cache levels=1:2
keys_zone=one:10m
> > > inactive=7d max_size=200m;
> > > fastcgi_temp_path /data/nginx/temp;
> > >
> > > location @joomla {
> > > fastcgi_pass 127.0.0.1:9000;
> > > fastcgi_param SCRIPT_FILENAME
> /home/kompastv/web/index.php;
> > > fastcgi_cache one;
> > > fastcgi_cache_key
127.0.0.1:9000$request_uri;
> > > fastcgi_cache_valid 200 1h;
> > >
> > > /data/nginx/cache and /data/nginx/temp is still empty
> > >
> > > root 28119 0.0 0.0 13940 496 ? Ss 15:41 0:00
nginx:
> > > master process /etc/nginxnew/sbin/nginx -c /etc/nginx/nginx.conf
> > > nginx 28120 1.3 0.2 17328 4408 ? R 15:41 0:01
> nginx:
> > > worker process
> > > nginx 28122 1.6 0.2 17384 4540 ? S 15:41 0:01
nginx:
> > > worker process
> > > nginx 28123 0.0 0.0 14096 800 ? S 15:41 0:00
nginx:
> > > cache manager process
> > >
> > > is there somethink i've missed?
> >
> > Does fastcgi return Expires or Cache-Control headers which may forbid
> > caching ?
> >
> > > -----Original Message-----
> > > From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf
Of
> > Igor
> > > Sysoev
> > > Sent: 21 April 2009 15:32
> > > To: nginx@sysoev.ru
> > > Subject: Re: which one is better?
> > >
> > > On Tue, Apr 21, 2009 at 03:10:31PM +0700, Glen Lumanau wrote:
> > >
> > > > Is there any help page regarding fastcgi_cache? Or it's the same
> format
> > as
> > > > proxy_cache?
> > >
> > > Yes, just s/proxy/fastcgi/.
> > >
> > > The single difference is that fastcgi cache requires
> > >
> > > fastcgi_cache_key localhost:9000$request_uri;
> > >
> > > while proxy_cache may use default one, similar to this:
> > >
> > > proxy_cache_key $scheme$proxy_host$uri$is_args$args;
> > >
> > >
> > > > -----Original Message-----
> > > > From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf
> Of
> > > Igor
> > > > Sysoev
> > > > Sent: 21 April 2009 14:41
> > > > To: nginx@sysoev.ru
> > > > Subject: Re: which one is better?
> > > >
> > > > On Tue, Apr 21, 2009 at 01:20:05PM +0700, Glen Lumanau wrote:
> > > >
> > > > > I still wonder which one is better for performance
> > > > >
> > > > > Pure nginx + php-fpm
> > > > >
> > > > > Or
> > > > >
> > > > > Nginx + apache2 + proxy_cache
> > > > >
> > > > > Anybody knows about this?
> > > >
> > > > Can not say about apache2 vs php-fpm, but you can use fastcgi_cache
> too.
> > > >
> > > >
> > > > --
> > > > Igor Sysoev
> > > > http://sysoev.ru/en/
> > > >
> > >
> > > --
> > > Igor Sysoev
> > > http://sysoev.ru/en/
> > >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

which one is better?

Glen Lumanau April 21, 2009 02:20AM

Re: which one is better?

Joe Bofh April 21, 2009 06:51PM

RE: which one is better?

AMP Admin April 21, 2009 07:13PM

RE: which one is better?

Glen Lumanau April 21, 2009 05:02AM

Re: which one is better?

Igor Sysoev April 21, 2009 06:32AM

RE: which one is better?

Glen Lumanau April 21, 2009 06:49AM

Re: which one is better?

Igor Sysoev April 21, 2009 06:59AM

RE: which one is better?

Glen Lumanau April 21, 2009 07:41AM

Re: which one is better?

Igor Sysoev April 21, 2009 07:49AM

Re: which one is better?

Igor Sysoev April 21, 2009 07:50AM

RE: which one is better?

Glen Lumanau April 21, 2009 06:51AM

Re: which one is better?

Igor Sysoev April 21, 2009 06:57AM

RE: which one is better?

Glen Lumanau April 21, 2009 07:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
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