Welcome! Log In Create A New Profile

Advanced

Re: Proxy upstream implementation with persistent connections?

Weibin Yao
May 25, 2010 10:56PM
Brian Pane at 2010-5-26 10:32 wrote:
> Has anyone made a module that supports keep-alive connections for HTTP
> upstreams?
>
> I'm working on an application where each request to nginx will result
> in multiple subrequests to an upstream HTTP server, and the network
> latency between nginx and the upstream server could be large (tens of
> milliseconds), so reusing a connection to the upstream server would
> help quite a bit.
>
The HTTP upstream keepalive connection has not been supported.

You can use this module with memcached and fastcgi keepalive connection:

http://mdounin.ru/hg/ngx_http_upstream_keepalive/

This is an example for mysql keepalive connection derived from above module:

http://github.com/chaoslawful/drizzle-nginx-module
> Thanks,
> -Brian
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
>
>


--
Weibin Yao


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Proxy upstream implementation with persistent connections?

Brian Pane 4328 May 25, 2010 10:34PM

Re: Proxy upstream implementation with persistent connections?

Weibin Yao 1615 May 25, 2010 10:56PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready