5. Configure Load Balancer

In order for your cluster to work efficiently, you need to use a load balancer. A load balancer is a software- or hardware-based solution you use to distribute incoming traffic across your servers. You can use any load balancer available on the market and configure it as your needs dictate. The only requirement is that you use the sticky session feature, which ensures that all the requests from a user are sent to the same instance during the session. The timeout of sticky sessions must be 90 minutes.

The scheme below illustrates a cluster architecture in which a load balancer is used:

 

If you use an Elasticsearch cluster in Zephyr Data Center, there is no need to use an external load balancer, as Elasticsearch used in a cluster has the load balancing capability.

Below is a sample load balancer configuration:

  • Health check path: /flex/version

  • Port: 80

  • Success code: 200

  • Interval: 60

  • Sticky sessions: Enabled

  • Stickiness duration: 90 min

  • Deregistration delay: 300

  • Load balancing algorithm: Round-robin

< Prev Step Next Step >

See Also

Set Up Zephyr Data Center
Support and Troubleshooting