What is the difference between NGINX load balance methods

Solution Unverified - Updated -

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, with least_conn will work. We have to use ip_hash since this is business requirement. How do failover with ip_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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content