The gateway services within *VMware vCloud Air include multiple customizable networking options. Here, we look at how to set up load balancing to distribute traffic among all the servers in a particular pool.
Watch the video
If you're not already logged in, to get started:
6. Click OK to return to the vCloud Director Administration window.
To set up load balancing, you first need to create a new pool of servers, which will be used to sit behind the actual load balancer. There are three parts to creating a new pool of servers: configuring the settings for the server pool, configuring the health check, and then adding the servers.
Configure the Server Pool Settings
4. In the Add Load Balancer Member Pool - Configure Service window, select the desired service and load balancing method, and then click Next.
|Load Balancing Method||Description|
|IP Hash||Selects a server based on a hash of the source and destination IP address of each packet.|
|Round Robin||Each server is used in turn according to the weight assigned to it. This is the smoothest and fairest algorithm when the server's processing time remains equally distributed.|
|URI||The left part of the URI (before the question mark) is hashed and divided by the total weight of the running servers. The result designates which server will receive the request. This ensures that a URI is always directed to the same server as long as no server goes up and down.|
|Least Connected||Distributed client requests to multiple servers based on the number of connections already on the server.|
Configure the Health Check
5. In the Add Load Balancer Member Pool - Configure Health Check window, select the health check mode and monitor port (if desired), and then click Next.
|HTTP||The GET/default 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.|
|SSL||Tests servers using SSLv3 client hello messages. The server is considered valid only when the response contains server hello messages.|
Add the Servers
6. In the Add Load Balancer Member Pool - Manage Members window, click Add.
7. In the Add Member window, complete the following fields, and then click OK.
8. Repeat Steps 6-7 to add as many servers as needed, and then click Next.
9. In the Add Load Balancer Member Pool - Ready to Complete window, click Finish to create the pool.
With the server pool created, you now need to create a virtual server on top of that pool to act as the load balancer and connection to the external network.
3. In the Configure Services window, confirm that the Demo Server has been created.
The final step is to configure the firewall to allow traffic to come in and accommodate load balancing.