Re: slow keep-alive with generic kernel

2017-04-02 Thread sv_91
Here is a demo example https://gist.github.com/magisterRab/6b7132e0b9e88baa4b7e0e69a2ff0aab if in line 120 remove writeRequest(fd), then the speed of the test will fall 2 times Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273276,273308#msg-273308

slice module got error when contents of upstream was updated

2017-04-02 Thread t.nishiyori
Helle, I'm using nginx with slice module as a proxy. One day, I got an error log such like a "etag mismatch in slice response while reading response header from upstream". The cause of this error was occurred when that some parts of response was cached before updating the upstream contents but

Re: Memory issue

2017-04-02 Thread JohnCarne
After upgrade and recompilation, issue is much less important, it increase only by 0.17% for an antire stats processing cycle, but issue remain unsolved [root@web1 ~]# nginx -V nginx version: nginx/1.11.12 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) built with LibreSSL 2.5.1 TLS SNI

Cashing packages for npm registry with NGINX

2017-04-02 Thread Alex Shemshurenko via nginx
My project is javascript app. I have lots of dependencies. I/O for npm registry takes major portion of CI execution. So my idea is to setup NGINX in front of npm registry and cache tgz files downloads. Im running Ubuntu 14.04. NGINX version is 1.4.6 This is my nginx configuration script user www-