How to manage load balancing rules for your VDC
Load balancing rules control Internet network traffic into VDC, via 'Local with Internet Gateway' networks. For each port of the network you can automatically distribute inbound network traffic across a number of virtual machines.
Load balancing rules are typically used for applications such as web-based services when you need to spread the volume of incoming user requests across multiple web server VMs, in order to obtain a reasonable speed of response and/or improve the user experience.
You will need to create firewall rules for all of the ports for which you are setting load balancing rules. See How to manage firewall rules for your VDC.
The VDC firewall and load balancer is based on VDC's native virtual router. If you wish instead to deploy a dedicated virtual machine running a load balancer application, then you should use a Public Direct Connect network which offers direct connection to the Internet without an additional firewall.
Clickon the left-hand menu. Then click the name of the network you wish to use. Then click , and from the list click the IP address which is of interest. You should now see the sub-panel for the IP address. Finally, click the tab to show the Configuration sub-panel:
Click thebutton under Load Balancing. This shows the list of load balancing rules for this specific IP address:
The input boxes above the table provide inputs for adding a new rule. See below for explanation.
For each rule, you need to click the to show the VMs that are included in the rule (click again to hide the information).button
The information for each rule comprises:
Rule name: The name which identifies this rule
Public Port: the public (Internet) port for this rule
Private Port: the private port for this rule
Algorithm: the load balancing algorithm in use (round robin, least connections, or 'source')
Stickiness: the optional stickiness policy (SourceBased, AppCookie or LbCookie)
(on the following lines) List of VMs included in this rule (click to show/hide)button
You can edit all of the parts of the load balancing rule: Click the to edit the Name or Algorithm; click the Stickiness button to add a stickiness policy, or modify it; click the button to add more VMs to this rule.button
You can delete the entire rule with the , next to the button. Or you can delete single VMs from the rule, using the appropriate Delete button.button
Use the input row at the top of loab balancing rules list and enter:
: a memorable (for you) name for the rule
and : for example, 80 and 80 for http access
: select one from the list Round Robin, Least Connections or Source
Stickiness (optional): clickto select a stickiness policy
Add VMs: click thebutton to show the list of available VMs, and select one or more of these; click to finish
(Ignore the 'Health Check' column which is not currently usable.)
You must click thebutton in the dialog to create the rule.