What is the difference between NGINX load balance methods
Issue
- I have 2 nginx configure as master and slave. I use the keepalived daemon to do this. When using
ip_hash
I observe the nginx will not failover to slave will not work. However, withleast_conn
will work. We have to useip_hash
since this is business requirement. How do failover withip_hash
?
Environment
- Red Hat Enterprise Linux (RHEL)
- Red Hat Software Collections (RHSCL)
- NGINX
- ngx_http_upstream_module
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.