Welcome! Log In Create A New Profile

Advanced

two nginx with ip_hash as a load balancer

July 02, 2009 06:12AM
Hi,
I have build a new application behind our hardware load balancer, since we need the 'sticky session' feather that our LB couldn't offer.So I put two nginx as a soft LB behind the hardware LB(that round-robin to nginx). Then I found the two nginx
always hash the same client IP to different backend server. it's weird if I understood right about the ip_hash that using crc32 hashing the IP address and % the number of server nodes to get the target backend server. So why I got two different backend server? any help?


Thank you!
Subject Author Posted

two nginx with ip_hash as a load balancer

kaktos July 02, 2009 06:12AM

Re: two nginx with ip_hash as a load balancer

Weibin Yao July 02, 2009 06:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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