slow response times

2015-06-29 Thread alexey ptushkin
We are currently using nginx/1.7.10 @Ubuntu12.04 for serving high load webapp with about 12-15k QPS mostly tiny requests / HTTP/1.1 keep-alive mode. Nginx is used as proxy for http backends. From time to time we are noticing traffic gaps and during this time nginx answers very slowly (up to 2

Can thread pool improve performance for such scenario

2015-06-29 Thread Jerry OELoo
Hi All: I am using Nginx as a reverse proxy which provide a web API (HTTP GET ) to client. and the backend application will get request from nginx and do some time-consuming processing (1-2 seconds) then response result to nginx, Nginx return result to client. I think this is synchronize operation.

Re: Serving from cache even when the origin server goes down

2015-06-29 Thread Lucas Rolff
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_use_stale You can use multiple values e.g. the below is probably a good start: proxy_cache_use_stale error timeout invalid_header updating; Cherian Thomas 30 Jun 2015 03:27 Is it possible to con

Reverse proxy setup problem

2015-06-29 Thread Nousfeed
I have created a reverse proxy for 2 web servers both are running about 10 sites each, they use to be on seperate external IP's but now need to be behind the same one. Using Nginx I setup a reverse proxy on a seperate VM, Its seems to work but one site is refusing to go to the correct server. I h

Serving from cache even when the origin server goes down

2015-06-29 Thread Cherian Thomas
Is it possible to configure Nginx to serve from cache even when the origin server is not accessible? I am trying to figure out if I can use a replicated Nginx instance that has cache files rsynced (lsyncd

Nginx-1.9.2 fatal code 2 !!

2015-06-29 Thread shahzaib shahzaib
Hi, We've just compiled latest nginx-1.9.2 on Debian wheezy 7 in order to utilize aio threads directive for our storage but nginx started to crash since we enabled aio threads on it. Following is the compiled options and log about the crash : root@archive3:/usr/local/nginx/conf/vhosts# nginx -V

Small bug in src/stream/ngx_stream_proxy_module.c

2015-06-29 Thread itpp2012
(1066) : warning C4244: '=' : conversion from 'off_t' to 'size_t', possible loss of data diff line 1066: if (size > (size_t) limit) { -size = limit; +size = (size_t) limit; } Posted at Nginx Forum: http://forum.nginx.org/rea

Re: Nginx and fastcgi with c

2015-06-29 Thread Sebastian Krebs
Hi, The Specs helped my writing a client, so it should help writing a server as well. Maybe there's also a ready-to-use library out there. Worth to mention, that this is independent from nginx. Theoretically you just need to listen on a socket, parse the request regarding the specs, *do something

Nginx and fastcgi with c

2015-06-29 Thread Prakash Premkumar
Where can I find good tutorials on writing fastcgi applications with nginx and c ? ( Googling didn't help much. ) How do I handle HTTP requests received by the nginx server with c code ? Please point out some resources towards learning the same . Thanks __

Re: Malware in /tmp/nginx_client

2015-06-29 Thread Lucas Rolff
It's not cached requests: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_in_file_only It's just temporary files that isn't deleted, if you set it to 'clean' instead of 'on' - I think you can even put it off as default... I don't know why it's actually enabled. guillefar

Re: Malware in /tmp/nginx_client

2015-06-29 Thread guillefar
Yes, I think I will do that. So they are indeed cached requests? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259948,259960#msg-259960 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx