atom feed28 messages in ru.sysoev.nginxRE: which one is better?
FromSent OnAttachments
Glen LumanauApr 20, 2009 11:19 pm 
Igor SysoevApr 21, 2009 12:40 am 
Glen LumanauApr 21, 2009 1:10 am 
Igor SysoevApr 21, 2009 1:31 am 
Glen LumanauApr 21, 2009 1:44 am 
Igor SysoevApr 21, 2009 1:53 am 
Glen LumanauApr 21, 2009 2:02 am 
Igor SysoevApr 21, 2009 3:31 am 
Glen LumanauApr 21, 2009 3:49 am 
Glen LumanauApr 21, 2009 3:51 am 
Igor SysoevApr 21, 2009 3:56 am 
Igor SysoevApr 21, 2009 3:59 am 
Glen LumanauApr 21, 2009 4:38 am 
Glen LumanauApr 21, 2009 4:41 am 
Igor SysoevApr 21, 2009 4:48 am 
Igor SysoevApr 21, 2009 4:50 am 
Jonathan VanascoApr 21, 2009 11:49 am 
Igor SysoevApr 21, 2009 1:31 pm 
Jonathan VanascoApr 21, 2009 3:37 pm 
Joe BofhApr 21, 2009 3:51 pm 
Michael ShadleApr 21, 2009 3:59 pm 
AMP AdminApr 21, 2009 4:13 pm 
Jonathan VanascoApr 21, 2009 5:48 pm 
Michael ShadleApr 21, 2009 10:50 pm 
Igor SysoevApr 21, 2009 11:41 pm 
Jonathan VanascoApr 22, 2009 7:38 am 
Jonathan VanascoApr 22, 2009 12:16 pm 
Jonathan VanascoApr 23, 2009 10:53 am 
Subject:RE: which one is better?
From:Glen Lumanau (gl@lumanau.web.id)
Date:Apr 21, 2009 1:44:05 am
List:ru.sysoev.nginx

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?

-----Original Message----- From: owne@sysoev.ru [mailto:owne@sysoev.ru] On Behalf Of Igor Sysoev Sent: 21 April 2009 15:32 To: ngi@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: owne@sysoev.ru [mailto:owne@sysoev.ru] On Behalf Of Igor Sysoev Sent: 21 April 2009 14:41 To: ngi@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.