Opened 18 months ago

#960 new enhancement

TCP connection re-use without upstream conf

Reported by: diwakar.jois@… Owned by:
Priority: major Milestone:
Component: nginx-core Version: 1.6.x
Keywords: Cc:
Sensitive: no
uname -a: Linux lb01 2.6.32-504.30.3.el6.x86_64 #1 SMP Thu Jul 9 15:20:47 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --prefix=/opt/rh/nginx16/root/usr/share/nginx --sbin-path=/opt/rh/nginx16/root/usr/sbin/nginx --conf-path=/opt/rh/nginx16/root/etc/nginx/nginx.conf --error-log-path=/var/log/nginx16/error.log --http-log-path=/var/log/nginx16/access.log --http-client-body-temp-path=/opt/rh/nginx16/root/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/opt/rh/nginx16/root/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/opt/rh/nginx16/root/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/opt/rh/nginx16/root/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/opt/rh/nginx16/root/var/lib/nginx/tmp/scgi --pid-path=/opt/rh/nginx16/root/var/run/nginx/nginx.pid --lock-path=/opt/rh/nginx16/root/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-pcre --add-module=./passenger-4.0.50/ext/nginx --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=' -Wl,-E'

Description

Hi,

We are using nginx as a http proxy.
We have to connect to only a couple of http servers.
There is high load generated from the clients. We want to reuse the TCP connections.
This can be acheived by adding upstream servers (as described in https://ma.ttias.be/enable-keepalive-connections-in-nginx-upstream-proxy-configurations/ ).
But the list of http servers can change.
Please let us know if there some configuration using which we can re-use TCP connections without needing upstream server configuration. (From https://www.ruby-forum.com/topic/4486861 I understand that dynamic configuration of upstream servers is not possible.)
If it is not supported yet, please enhance nginx so that with a new configuration tcp connections could be re-used without needing upstream server configuration.


With Best Regards,
Diwakar

Change History (0)

Note: See TracTickets for help on using tickets.