Skip to content

How to configure a load balancer


One of the functions of the Edge Services Gateway (ESG) is to act as a basic Layer 3 load balancer, distributing IP traffic to a pool of servers while appearing as a single virtual server. The load balancing methods offered are round-robin, IP hash, URI, HTTP header or least connected.


The ESG load balancer is quite basic. If you have more complex requirements, you will need to provide your own third-party virtual load balancer.

Configure a load balancer¤

To configure a load balancer:

  1. In the VMware Cloud Director Virtual Datacenters dashboard, select the VDC that contains the ESG which requires load balancer configuration.

  2. In the left navigation panel, click Edges.

    Nav Edge

  3. Select the ESG for configuration, and click Services.

    Nav Services

  4. Select the Load Balancer tab.

    Nav Load Balancer

  5. On the Global Configuration tab, enable the Enabled option.

  6. If you have a syslog server configured, enable the Enable Logging option.

  7. To finish, click Save changes.

Configure a pool server¤

Pool servers are the real servers that will be masked by the load balancer.

  1. Select the Pools tab.

    Nav Pools

  2. Click the + button.

    Add Pool

  3. In the Add Pool dialog box, enter a Name and Description. The pool name should not include any spaces.

  4. From the Algorithm list, select the load balancing algorithm to use.

  5. From the Monitors list, select the monitors policy.

  6. Enable the Transparent option if you want IP addresses to be transparent.

    New Pool

  7. In the Members section, click +.

    Member Add

  8. In the Add Member dialog box, in the Name field, enter the server NameIP AddressPort and Weight. To finish, click Keep.

    Member Add

  9. Add more pool members as required and when completed, click Keep.

  10. To view the status of pool members, click Show Pool Statistics.

Configure a virtual server¤

A virtual server masks the pool of real servers and presents a single IP address.

  1. Select the Virtual Servers tab.

    0Nav Virtserver

  2. Click the + button.

    Virtserver New

  3. In the Add Virtual Server dialog box, enable the Enable Virtual Server option.

  4. Enter a Name for the virtual server, assign it a virtual IP Address, and assign it to the server pool you want to mask. You can also choose which services you want to apply to the virtual server. To finish, click Keep.

    Virtserver Add

Next steps¤

In this article you have learned how to configure a load balancer. For other ESG configuration tasks, see:

Last update: July 9, 2023