Re: Regression in 1.14 when following upstream redirects

2018-05-16 Thread vedranf
Hey, Maxim Dounin Wrote: --- > Hello! > > On Mon, May 14, 2018 at 01:22:46PM -0400, vedranf wrote: > > > There is a problem when nginx is configured to try to follow > redirects (301) > > from upstream server in ord

Regression in 1.14 when following upstream redirects

2018-05-14 Thread vedranf
Hello, There is a problem when nginx is configured to try to follow redirects (301) from upstream server in order to cache responses being directed to, rather than the short redirect itself. This worked in 1.12 and earlier releases. Here is the simplified configuration I use and which used to work

Possible cached file corruption with aio_write enabled

2016-05-25 Thread vedranf
Hello, I've recently upgraded one of the nginx servers within a caching (proxy_cache module) cluster from 1.8.1 to 1.10 and soon after I noticed unusually high number of various errors only on that server which I eventually pin pointed to a mismatch between the actual cached file size on disk and

Re: Cache manager occasionally stops deleting cached files

2016-02-19 Thread vedranf
Maxim Dounin Wrote: --- > Hello! Hello and thanks for the reply! > > I assume the mentioned error is due to relatively often nginx > restarts and > > is benign. There's nothing else in the error log (except for > occasional > > upstream timeout

Cache manager occasionally stops deleting cached files

2016-02-18 Thread vedranf
Hello, I'm having an issue where nginx (1.8) cache manager suddenly just stops deleting content thus the disk soon ends up being full until I restart it by hand. After it is restarted, it works normally for a couple of days, but then it happens again. Cache has some 30-40k files, nothing huge. Rel

Range + If-Range requests not working with proxy cache hits

2015-12-21 Thread vedranf
Hello, I'm using proxy_cache module and I noticed nginx replies with whole response and 200 OK status on requests such as this and for content that is already in cache: User-Agent: curl/7.26.0 Accept: */* Range:bytes=128648358-507448924 If-Range: Thu, 26 Nov 2015 13:48:46 GMT However, If I remov

Re: Nginx writing to Cephfs

2015-07-24 Thread vedranf
Valentin V. Bartenev Wrote: --- > On Friday 24 July 2015 09:55:04 vedranf wrote: > > Valentin V. Bartenev Wrote: > > --- > > > On Thursday 23 July 2015 14:51:58 vedranf w

Re: Nginx writing to Cephfs

2015-07-24 Thread vedranf
Valentin V. Bartenev Wrote: --- > On Thursday 23 July 2015 14:51:58 vedranf wrote: > > Valentin V. Bartenev Wrote: > > > > > It more looks like a bug in cephfs. writev() should never return > > > ERESTARTSYS.

Re: Nginx writing to Cephfs

2015-07-24 Thread vedranf
Hello, So Ceph devs final reply was: "ngx_write_fd() is just a write(), which, when interrupted by SIGALRM, fails with EINTR because SA_RESTART is not set. We can try digging further, but I think nginx should retry in this case." Let me know what do you think. Thanks, Vedran Posted at Nginx F

Re: Nginx writing to Cephfs

2015-07-23 Thread vedranf
Valentin V. Bartenev Wrote: > It more looks like a bug in cephfs. writev() should never return > ERESTARTSYS. I've talked to the ceph people, they say ERESTARTSYS shows up in strace output but it is handled by the kernel and that writev(2) is interrupted by the SIGALRM, which actually appears i