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.

5
  • Where does it says that? HTTP there means that it's not available for stream module
    – Alexey Ten
    Jun 1, 2016 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? Jun 1, 2016 at 21:41
  • @MikeFiedler Yes,As a loadbalancer and ssl terminator!
    – Leo
    Jun 2, 2016 at 8: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 2, 2016 at 8:47
  • 1
    You could just try and see result. It'll take 10 minutes
    – Alexey Ten
    Jun 2, 2016 at 10:03

0

You must log in to answer this question.

Browse other questions tagged .