Welcome! Log In Create A New Profile

Advanced

Re: ip_hash load balancer incompatible with IPv6 compat. sockets

Maxim Dounin
January 31, 2012 10:20AM
Hello!

On Tue, Jan 31, 2012 at 07:46:46AM -0500, pamribeirox wrote:

> I'm using nginx to distribute the load over 3 webservers using the
> ip_hash method.
> When the listening socket is IPv4/IPv6 compatible ( listen [::]:443; )
> only one of the backend servers are used.
> With the socket in IPv4 only mode ( listen 0.0.0.0:443; ) the module
> correctly distributes the load.
> It seems the hash isn't taking in account the size of the addresses and
> because the first 32bits of the struct in this mode doesn't seem to vary
> much the load balacing isn't working.

Yes, ip_hash only works with ipv4 addresses, it's not currently
able to handle ipv6 addresses (including v4-mapped ones).

Maxim Dounin

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

ip_hash load balancer incompatible with IPv6 compat. sockets

pamribeirox January 31, 2012 07:46AM

Re: ip_hash load balancer incompatible with IPv6 compat. sockets

Maxim Dounin January 31, 2012 10:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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