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_hashI observe the nginx will not failover to slave will not work. However, withleast_connwill work. We have to useip_hashsince 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.