Gateways in Virtual Private Cloud OnDemand support load balancing for the virtual machines connected to routed networks.

In Virtual Private Cloud OnDemand, a load balancer for a gateway has a virtual server and corresponding server pool. The virtual server and server pool have the following characteristics:

The virtual server has a public IP address and services all incoming client requests.

The server pool assigned to the virtual server is responsible for all load balancing.

Because a gateway supports up to nine interfaces, the load balancer service supports multiple server pools and separate load balancing methods for each server pool (as shown in the following graphic).

Load Balancing Components in Virtual Private Cloud OnDemand
Load Balancing Components in Virtual Private Cloud OnDemand

See Add a Pool Server to an Edge Gateway in vCloud Director Administrator’s Guide for a description of each load balancing method.

To configure load balancing for a gateway, do the following tasks:

1

Determine which public IP address is allocated to the gateway before you configure load balancing for it by clicking the Gateway tab from the Virtual Private Cloud OnDemand Web UI > gateway name > Public IPs tab. The list of public IP addresses allocated to the gateway appears.

To view the public IP address allocation for the gateway by using vCloud Director, see View IP Use for an Edge Gateway in vCloud Director Administrator’s Guide for information.

Additionally, view the Sub-allocated IP Range configured for the gateway. (A gateway uses the Sub-allocated IP Range for NAT configuration. A Sub-allocated IP Range contains a subset of IP addresses from the IP Range that is already assigned to the gateway’s external network.)

Navigate from Virtual Private Cloud OnDemand to the following area of vCloud Director:

Virtual Private Cloud OnDemand Web UI > Gateway tab > Manage in vCloud Director > vCloud Director Administration page > Edge Gateway tab > select the gateway, right-click and choose Properties > Sub-Allocate IP Pools tab

See Suballocate IP Pools on an Edge Gateway in vCloud Director Administrator’s Guide for information.

2

Configure load balancing for the gateway by using vCloud Director.

Load balancing for a gateway is configured on the external interface because the gateway load balances incoming traffic from the external network. When configuring the virtual server for load balancing, specify one of the available IP addresses that you determined from task 1.

Navigate from Virtual Private Cloud OnDemand to the following area of vCloud Director:

Virtual Private Cloud OnDemand Web UI > Gateways tab > Manage in vCloud Director > vCloud Director Administration page > Edge Gateway tab > select the gateway, right-click and choose Edge Gateway Services > Load Balancer tab

See Managing Load Balancer Service on an Edge Gateway in vCloud Director Administrator’s Guide for the steps to configure the virtual server and server pool.

3

Create a firewall rule to permit traffic to the new virtual server (the destination IP address).

See Add a Firewall Rule in this guide for information.

Traffic to this routed network is now load balanced between the servers in the server pool.