Welcome! Log In Create A New Profile

Advanced

ip_hash load balancer incompatible with IPv6 compat. sockets

January 31, 2012 07:46AM
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.

Keep up with the good work with this excelent proxy!
Regards.
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: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready