Re: why reuseport don't increases throughoutput?

2017-05-22 Thread Zhang Chao
Well, i think may be you need an off-cpu flame graph :) On 23 May 2017 at 10:59:29, fengx (nginx-fo...@forum.nginx.org) wrote: There should been no blocking operation. At least, we have the same codebase and same sample data in the two test cases. In fact, our application is based on OpenResty

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread CJ Ess
How about logging? If your using the default settings then nginx is logging directly to disk, and disk writes will block the worker. Do you see the same degradation with logging disabled or via syslog? On Mon, May 22, 2017 at 10:59 PM, fengx wrote: > There should been no blocking operation. At

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread fengx
There should been no blocking operation. At least, we have the same codebase and same sample data in the two test cases. In fact, our application is based on OpenResty with local redis instances. On the 32 cores server, we have 22 nginx workers and 8 local redis instances(shards). The lua codes s

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread fengx
We have CentOS 7 with kernel 3.10.0 in the production. As known, SO_REUSEPORT is introduced from kernel 3.9. I also had the test on my own laptop, Ubuntu 14, kernel 4.4 and got the similar result. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274281,274398#msg-274398 ___

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread Zhang Chao
Hi! Just as the article says, it can also mean that when a worker is stalled by a blocking operation, the block affects not only connections that the worker has already accepted, but also connection requests that the kernel has ass

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread Zhang Chao
Hi! Just as the article says, it can also mean that when a worker is stalled by a blocking operation, the block affects not only connections that the worker has already accepted, but also connection requests that the kernel has ass

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

2017-05-22 Thread lists
If the secret page is on a different subdomain, could it be restricted to one IP? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

2017-05-22 Thread Francis Daly
On Fri, May 19, 2017 at 03:24:43AM -0400, ohmykot wrote: Hi there, in nginx, one request is handled in one location, and only the config in (or inherited into) that location applies. > On the web-site, I have a wordpress page, i.e. domain.com/secret-page/, that > I want to restrict access to eve

Conference nginx.conf 2017 CFP deadline is May 25

2017-05-22 Thread Nick Shadrin
There are just a few days left to submit your talk proposals for nginx.conf 2017, and we want to hear from you! How are you using NGINX or NGINX Plus to help you achieve performance, security, reliability, and scale? Whether you're deploying your app in the cloud, on bare metal, or somewhere in

Re: why reuseport don't increases throughoutput?

2017-05-22 Thread CJ Ess
I'd be interested in knowing more also - I know that the Linux 2.6 kernel is still really popular and didn't have the SO_REUSEPORT socket option (though it was in the include files and wouldn't cause an error if you referenced it), might that be what your running into? On Wed, May 17, 2017 at 7:58

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
Thanks Francis. Worked like a charm. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274372,274383#msg-274383 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread Francis Daly
On Mon, May 22, 2017 at 08:32:13AM -0400, AjaySawant wrote: Hi there, > tomcat url redirect to a third party SAML2 provider and once it > authenticated it redirected to http://localhost:8080/auth_app/ instead of > http://192.168.2.6/auth_app/ > location /auth_app { >

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
There is no error in tomcat and nginx. I am using default tomcat The output of nginx -v and server.xml is given below == nginx version: nginx/1.6.1 built by gcc 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) T

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
I configured nginx as a reverse proxy to tomcat as I don't want to show the IP of my back end. Tomcat is running on 192.168.2.6 port 8080 and I want to serve tomcat via nginx on prt 80 that is http://192.168.12.6 and not via http://192.168.2.6:8080 Posted at Nginx Forum: https://forum.nginx.org/r

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread Aleksandar Lazic
Hi AjaySawant. AjaySawant have written on Mon, 22 May 2017 08:32:13 -0400: > I am trying to proxy tomcat using nginx. I have this configuration > below. Now the problem I am facing is if I access the url by > IP(192.168.2.6) then it gets redirected to /auth_app is tomcat which > is perfectly fine

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread itpp2012
AjaySawant Wrote: --- > doesn't open as tomcat is running on 192.168.2.6 and not localhost. [...] > proxy_pass http://localhost:8080/auth_app/; Maybe you made a typo in your config. Posted at Nginx Forum: https://forum.

nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
I am trying to proxy tomcat using nginx. I have this configuration below. Now the problem I am facing is if I access the url by IP(192.168.2.6) then it gets redirected to /auth_app is tomcat which is perfectly fine. The tomcat url redirect to a third party SAML2 provider and once it authenticated i

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

2017-05-22 Thread ohmykot
Thanks for you answer. I meant that I need to restrict access to single wordpress page (there is a secret form there). /secret-page/ - is a permalink of the page, rewritten URL managed by wordpress. To make it work I used general config for wordpress I found on DigitalOcean guide server {