1

I want to use Nginx with a socket.io app with TLS/SSL termination at the load balancer. Is it possible to use the ip_hash directive to do sticky loadbalancing in combination with TLS/SSL termination? My application only uses HTTPS.

I could not find any resource except this article which says sticky loadbalancing isn't applicable with TLS/SSL and I'm confused!

article quote:

IP Hash (available for HTTP only) is a predefined variant of the Hash method, in which the hash is based on the client’s IP address. You set it with the ip_hash directive.

Leo
  • 31
  • 1
  • 4
  • Where does it says that? HTTP there means that it's not available for stream module – Alexey Ten Jun 01 '16 at 20:04
  • The `ip_hash` is solely used to make the requests "stick" agains the upstream server. Are you using nginx as the load balancer in front of other socket.io app servers? – Mike Fiedler Jun 01 '16 at 21:41
  • @MikeFiedler Yes,As a loadbalancer and ssl terminator! – Leo Jun 02 '16 at 08:46
  • @AlexeyTen this part: `IP Hash (available for HTTP only) is a predefined variant of the Hash method, in which the hash is based on the client’s IP address. You set it with the ip_hash directive.` – Leo Jun 02 '16 at 08:47
  • 1
    You could just try and see result. It'll take 10 minutes – Alexey Ten Jun 02 '16 at 10:03

0 Answers0