The purpose of a Load Balancer is to distribute TCP/IP connections to multiple servers within your network. This is in large part, designed to optimize the performance and resource use of your Cloud Services as it helps improve response time and avoid overworking any one resource limit. It also allows for failover in the event of a down machine. While there are many ways to configure a Load Balancer, and they can be edited and adjusted to ones individual need, you can setup and install Load Balancers on from your Cloud Portal by the following:
- Login to your Cloud Dashboard.
- Select the 'Administration' tab on the top left of your main window and then double-click your virtual datacenter.
- On the next screen, select the 'Edge Gateways' tab then right-click your edge or select it (it will be highlighted in blue), then select the gear icon to pull down the options. Choose 'Edge Gateway Services.'
- Select the 'Load Balancer' tab on the top of the editor, then to add a new load balancer, select the 'Add' button. If you have an existing load balancer you need to edit, simply select the balancer, and press the 'Edit' button instead.
- First, you will need to select the name of the load balancer you would like to use, along with a description to record which tasks this balancer is performing. Once you have that entered, that information, select the 'Next' button.
- Next is to configure the services of the load balancer. You will be able to choose to enable HTTP, HTTPS, and TCP services, along with which port they will be assigned to. When selecting which Balancing method to use, there are 4 different options to choose from:
Round Robin - The most commonly used Balancing Method. Round Robin distributes processing time evenly across all servers, helping optimize each server's performance.
IP Hash - Selects a server based on a hash from the source IP and destination IP address of each packet.
Least Connected - Assigns new processes to the server with the least amount of active connections at the time.
URI - Used to connect to a remote server/location and have that server/location assist with load distribution. The URI can also be another machine in your vApp.
- Once you have selected which protocols the Load Balancer will use, you will have the option of monitoring specific ports at different times to check to see if a machine is offline or online. Select 'Next' once the information matches what you are looking for.
- HTTP - HTTP GET method is used to detect server status. Only responses 2xx and 3xx are valid. Other responses (including a lack of response) indicate a server failure. URI used for HTTP GET requests can be specified in the text field.
- SSL Tests servers using SSLv3 client hello messages. The server is considered valid only when the response contains server hello messages.
- TCP - TCP connection check
- Next is to allow you to provide other back-end servers access. To provide access to another device, select the 'Add' button.
- A popup window will appear where you can enter the IP address of the server to have access. Ratio numbers allow you determine the priority that server has when requests are sent. Setting a ratio weight to 0 will disable the member. You can also select the port, and monitoring port of the member. Once filled out, press 'OK' to add the member.
- After finishing everything else, you will want to review the settings to make sure everything with your Load Balancer is correct. Once everything is in order, select "Finish" to save all changes.