Skip to main content
Version: 7.2405.x.x LTS

LoadBalancerServlet

The LoadBalancerServlet can be used to activate load balancing between two or more Servlets (usually BackendConnectorServlets).

Classname:
ch::nevis::nevisproxy::servlet::loadbalancer::LoadBalancerServlet

Library:
libLoadBalanceServlets.so.1

Tracegroup:
BC.Tracer.DebugProfile.NPLoadBalance

Configuration

Servlets

  • Type: comma-sepratated list of servlet names
  • Usage Constraints: required

Define the servlets over which load balancing has to be done.

RetryTimeout

  • Type: integer
  • Usage Constraints: required

Timeout (in seconds) after which a connection to a servlet which was down should be retried again.

Algorithm

  • Type: enum, currently only RoundRobin is supported

The load balancing algorythm to use. Currently only RoundRobin is supported.

IsAliveURI

  • Type: string
  • Usage Constraints: required, optional

If an IsAliveUri is set, then the LoadBalancerServlet calls this URI when the backend is down. The URI is called all RetryTimeout seconds until the backend returns a status code 200 is down. Once the backend is up, the URI is not called any more, except when the backend is marked down again after a normal request.