Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx-0.7.45



 .
proxy_cache   location.

        server {
                listen          *:8080 default;
                server_name     localhost;

                #-- main
                location / {
                                ...
                        }
                        error_page 404 = @proxy;
                }

                #-- proxy
                location @proxy {
                        access_log      /place/nginx/log/access_proxy.log stat;
                        proxy_cache     zone;
                        proxy_pass      http://p1;
                }

  key_zone  max_size
proxy_cache_path        /place/nginx/cache levels=1:2
keys_zone=zone:10m inactive=60m max_size=30m;

  __    50-80,  
manager   100%  .

bzsize      ,    bsize?

[notice] 36093#0: http file cache: /place/nginx/cache 0.000M, bsize: 512

  : newfs -e 512 -f 512 /dev/md0

,  - cache manager       ?


31  2009 . 0:24  Igor Sysoev <is@xxxxxxxxxxxxx> :
> On Mon, Mar 30, 2009 at 09:39:07PM +0400, Andrey Zonov wrote:
>
>> ...
>>    proxy_connect_timeout  3;
>>    proxy_buffering     on;
>>    proxy_buffer_size    32k;
>>    proxy_buffers      32 32k;
>>    proxy_intercept_errors off;
>>    proxy_next_upstream   error timeout http_500;
>>    proxy_store_access   user:rw group:rw all:r;
>>    proxy_temp_path     /place/nginx/cache/spool 1 2;
>>
>>    proxy_cache_path    /place/nginx/cache levels=1:2
>> keys_zone=zone:1m inactive=60m max_size=5m;
>
> zone:1m -   8192 .
>
>>    proxy_cache_min_uses  1;
>>    proxy_cache_valid    200 302 60m;
>>    proxy_cache_valid    404 10m;
>> ...
>
>   proxy_cache ?     ?
>    ?
>
>> $ grep bzsize /place/nginx/log/error.log
>> $
>
>    notice.
>
>>  - FreeBSD 7.1-RELEASE-p2
>> nginx-devel-0.7.46  ,     .
>>
>> Igor Sysoev :
>> >On Mon, Mar 30, 2009 at 07:48:47PM +0400, Andrey Zonov wrote:
>> >
>> >
>> >>,    ?
>> >>
>> >> :  nginx,   
>> >>  ,     max_size,   __,
>> >>  cleaner manager   100% .  
>> >>    ,  ӣ ...
>> >>
>> >>  ktrace,      
>> >>gettimeofday
>> >>
>> >
>> >  ..._cache_path   
>> >
>> >grep bzsize error.log
>> >
>> >?
>> >
>> >
>> >
>
> --
>  
> http://sysoev.ru
>
>


 




Copyright © Lexa Software, 1996-2009.