Welcome! Log In Create A New Profile

Advanced

Re: How can nginx supports more than 64511 concurrent backend connections?

May 23, 2012 12:48PM
On Tue, 2012-05-22 at 04:05 -0400, diogin wrote:
> Hello nginx fans,
>
> I'm using nginx (with ngx_redis2 module) as a redis client, and would
> like to establish more than 64511 keep alive connections with a redis
> instance. The local port range of Linux is limited to 64511, so I'd like
> to set up multiple ip addresses for nginx machine, but I don't know how
> to tell nginx to bind local port on multiple ip addresses. Anyone has
> the experience? Thanks in advance.

You could also give the redis instance multiple IP addresses and then
put those instances in an upstream block so Nginx will round-robin them.

The port limitation is 64K per address *pair* (local, remote), so you
can add IP's on either side to get the same effect.

Cliff

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

How can nginx supports more than 64511 concurrent backend connections?

diogin May 22, 2012 04:05AM

Re: How can nginx supports more than 64511 concurrent backend connections?

Cliff Wells May 23, 2012 12:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
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