Hello!
Im trying to get a solid load balancing solution in place that can rotate servers and keep sessions per IP. I like NGINX's setup so I first came here to get this done but am having an issue with requests only hitting one of the backend servers when I have ip_hash enabled. Ive gone through the access.logs and show a unique IP on each request, but each request only goes to the first server I have on the list. If I remove ip_hash, the request's round robin properly and I get a different server each time. However, when I add ip_hash and have everyone in the office try the site, they all just pull up the first server.
Am I missing something here? Is it not hashing via the local system IP and only through the external WAN IP?
Thanks in advance for your time to consider this issue.
Im trying to get a solid load balancing solution in place that can rotate servers and keep sessions per IP. I like NGINX's setup so I first came here to get this done but am having an issue with requests only hitting one of the backend servers when I have ip_hash enabled. Ive gone through the access.logs and show a unique IP on each request, but each request only goes to the first server I have on the list. If I remove ip_hash, the request's round robin properly and I get a different server each time. However, when I add ip_hash and have everyone in the office try the site, they all just pull up the first server.
Am I missing something here? Is it not hashing via the local system IP and only through the external WAN IP?
Thanks in advance for your time to consider this issue.