Re: proxy_bind with hostname from /etc/hosts possible?

2017-03-17 Thread larsg
thanks for the reply. indeed, we are generating the split_clients directive on the host it's running. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272918,273009#msg-273009 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mai

proxy_bind with hostname from /etc/hosts possible?

2017-03-13 Thread larsg
Hi! is it possible to use an hostname from local /etc/hosts as proxy_bind value? In our current Background: We use nginx 1.8.1 as reverse proxy. In order to overcome the "Overcoming Ephemeral Port Exhaustion" problem (64k+ connections), we use proxy_bind to iterate over all loccally available IP

Re: Reverse Proxy with 500k connections

2017-03-13 Thread larsg
Hi Guys, we solved the problem and I wanted to give you feedback about the solution. Finally it was an problem with our linux ip routes. After implementing source based policy routing this nginx configuration worked. Thank you for your support! Kind Regards Lars Summary of Solution: split_clie

Re: RE: Reverse Proxy with 500k connections

2017-03-09 Thread larsg
Hi Reinis, yes, IPs exist: ifconfig eth0: flags=4163 mtu 1500 inet 192.168.1.130 netmask 255.255.255.0 broadcast 192.168.1.255 ether fa:16:3e:1e:ad:da txqueuelen 1000 (Ethernet) ... eth1: flags=4163 mtu 1500 inet 192.168.1.131 netmask 255.255.255.0 broadcast 192.1

Re: Reverse Proxy with 500k connections

2017-03-09 Thread larsg
Hi everybody, ok, I recognized another linux network problem that I solved now. Situation now is like following: When I call my upstream address via curl (on the nginx host) by selecting the corresponding local interface (eth0-9 = 192.168.1.130-139) everything is fine. curl https://192.168.1.

Re: Reverse Proxy with 500k connections

2017-03-09 Thread larsg
Thanks for the advice. I implemented this approach. Unfortunately not with 100% success. When enabling sysctl option "net.ipv4.ip_nonlocal_bind = 1" it is possible to use local IP addresses (192.168.1.130-139) as proxy_bind address. But than using such an address (other than 0.0.0.0), nginx will p

Reverse Proxy with 500k connections

2017-03-07 Thread larsg
Hi, we are operating native nginx 1.8.1 on RHEL as a reverse proxy. The nginx routes requests to a backend server that can be reached from the proxy via a single internal IP address. We have to support a large number of concurrent websocket connections - say 100k to 500k. As we don't want to incr

Re: Nginx using variables / split_clients is very slow

2017-02-28 Thread larsg
Dear Maxim, thank you very much. This solved my problem! Great! Kind Regards Lars Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272657,272663#msg-272663 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

Nginx using variables / split_clients is very slow

2017-02-28 Thread larsg
Hi, I want to use nginx as reverse proxy for an A/B testing scenario. The nginx should route to two versions of one backend service. The two versions provides this service via different URL paths. Example: * x% of all requests https://edgeservice/myservice should be routed to https://1.2.3.4/my