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.
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?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.