Welcome! Log In Create A New Profile

Advanced

Re: Directio and proxy_cache

June 22, 2009 02:59PM
On Mon, Jun 22, 2009 at 01:51:32PM -0500, Resicow wrote:

> Hello,
>
> Is it possible to have proxy_cache use directio? Will it listen to the
> directive?
>
> I want nginx to serve the content from the cache directly, without going
> through the linux page cache.

No, currently proxy_cache does not allow directio. I can say right now
the reason why, but you may try to control it by changing in
src/http/ngx_http_file_cache.c

of.min_uses = clcf->open_file_cache_min_uses;
of.events = clcf->open_file_cache_events;
- of.directio = NGX_OPEN_FILE_DIRECTIO_OFF;
+ of.directio = clcf->directio;

if (ngx_open_cached_file(clcf->open_file_cache, &c->file.name, &of, r->pool)



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

Directio and proxy_cache

Resicow June 22, 2009 02:51PM

Re: Directio and proxy_cache

Igor Sysoev June 22, 2009 02:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready