Nginx

This section will walk you through configuring Nginx as a load balancer to direct client requests to a group of PowerServer Web APIs. You can choose one of the following methods:

  • Use the Nginx third-party module (Nginx Sticky Module) to support session persistence via cookies.

  • Use Nginx Plus that supports session persistence via cookies.

    Nginx Plus is a commercial product.

  • Use the IP hash load-balancing method to support session persistence via IP address.

    With IP hash, the client's IP address is used as a hashing key to determine which PowerServer Web APIs should be selected for the client's request. This ensures the requests from the same user session is always directed to the same PowerServer Web APIs. However, the IP-hash-based session persistence cannot guarantee that user sessions are evenly distributed across servers. For example, there may be situations where a lot of user sessions are coming with the same IP address (behind proxies) and all these user sessions will go to the same server, which might cause unbalanced load.