Nginx feature request

Igor Sysoev is at rambler-co.ru
Wed Apr 22 11:16:58 MSD 2009


On Wed, Apr 22, 2009 at 12:58:30AM +0200, Joe Bofh wrote:

> Igor,
> 
> I do not see the open_file_cache directive documented on the wiki. Is 
> this different from "open_log_file_cache" which is documented? If not, 
> what is the difference...

It's similar to open_log_file_cache, but have additional directive:

open_file_cache_errors  [on|off]; # default is off

which allows to cache open file errors: not found, etc.

> --J
> 
> Igor Sysoev wrote:
> > On Tue, Apr 21, 2009 at 04:43:05PM +0200, Roger Pack wrote:
> > 
> >> 
> >> Though probably wouldn't be tons faster.
> >> Thoughts?
> > 
> > I do not think that using libev in nginx will change anything.
> > 
> > Probably, the following settings may slightly improve or worsen:
> > 
> > 1) turing sendfile off: it may be not effective on small files.
> >    Also not that lighttz does not read file at all each request.
> > 
> > 2) using open file cache, it saves 3 syscalls per request (open, fstat, 
> > close):
> > 
> > open_file_cache          max=1000  inactive=20s;
> > open_file_cache_valid    30s;
> > open_file_cache_min_uses 2;
> > open_file_cache_errors   on;
> > 
> > 3) using buffered log:
> > 
> > access_log  /path/to/access.log  buffer=32k;
> > 
> > or turing it off at all:
> > 
> > access_log  off;
> > 
> > 4) using 1 worker.
> 
> -- 
> Posted via http://www.ruby-forum.com/.

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





More information about the nginx mailing list