In this scheme, load balancers manage incoming requests one by one, rotating them between the servers added to a cluster (a round-robin method).
OnApp load balancers are based on Layer four load balancing which means that requests are distributed at the transport layer, such as TCP/UDP transport protocols. To add an LB cluster:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the Add a New Balancer button.
- On the page that follows, fill in the form that appears:
- Port - specify the port for this load balancer to run on (e.g. 9090, 8080, 9008 etc.)
To add multiple load balancer ports, click the "+" button next to the first port.
Load Balancer Instance
- Label – give a name to your load balancer instance.
- Hostname – specify a hostname that will identify your load balancer.
- Compute zone – choose a compute zone.
- Compute resource – select a compute resource that will be enabled for the cluster.
- Network zone – choose a network zone for this load balancer.
- Port Speed – use the slider to set a port speed or tick the Unlimited box if required.
- CPU Priority - set the load balancer's CPU priority.
Load Balancer Type
- Load Balancer Type - choose the Cluster option and click Next.
This is where you add and configure the nodes in this load balancing cluster. A node is a combination of a VS and an IP address.
The only VSs you can add to a cluster are those which are based on the selected compute resource/compute zone, have an IP in the defined network zone and are located in the same IP range.
- Virtual Server - select a virtual server from the drop-down box and click the Add Node button.
Enabled anti-spoofing would prevent adding Windows-based virtual servers as nodes to the load balancer cluster. To disable anti-spoofing reboot windows-based nodes from Control Panel after they are added to the cluster.
- Click Save.