Create a virtual server and bind it to a Distributed Load Balancer service.

This task can be performed both from the NSX-T UI and NSX-T APIs.

The API command to create a virtual server is PUT https://<NSXManager_IPAddress>/policy/api/v1/infra/lb-virtual-servers/<lb-virtual-server-id>.

Prerequisites

  • Create a server pool for the Distributed Load Balancer.

Procedure

  1. From your browser, log in with admin privileges to an NSX Manager at https://<nsx-manager-ip-address>.
  2. Go to Networking → Load Balancing → Virtual Servers.
  3. Click Add Virtual Server -> L4 TCP.
  4. To configure a virtual server for a Distributed Load Balancer, only the following fields are supported.
    Field Description
    Name Enter a name for the virtual server.

    IP Address

    IP address of the Distributed Load Balancer virtual server. Configures the IP address of the Distributed Load Balancer virtual server where it receives all client connections and distributes them among the backend servers.

    Ports

    Virtual server port number.

    Multiple ports or port ranges are not supported in the virtual server of a Distributed Load Balancer.

    Load Balancer

    Attach the Distributed Load Balancer instance that is associated to the virtual server. The virtual server then knows which policy group the load balancer is servicing.

    Server Pool

    Select the server pool. The server pool contains backend servers. Server pool consists of one or more servers that are similarly configured and are running the same application. It is also referred to as pool members.

    Application Profile

    Select the application profile for the virtual server.

    The application profile defines the application protocol characteristics. It is used to influence how load balancing is performed. The supported application profiles are:
    • Load Balancer Fast TCP Profile
    • Load Balancer Fast UDP Profile

    Default Pool Member Ports

    Optional field.

    Enter one port number to be used when member ports are not defined. Multiple ports or port ranges for default pool member ports are not supported in the virtual server of a Distributed Load Balancer.

    Persistence

    Optional field.

    Select Source IP or Disabled.

    The Distributed Load Balancer configuration is complete.

Results

Verify whether the DLB is distributing traffic to all the servers in the pool based on the algorithm defined in the configuration. If you choose the Round_Robin algorithm, then DLB must be able to choose servers from the pool in a round robin fashion.

In the ESXi host, verify whether the DLB configuration is complete.

What to do next

See Verifying Distributed Load Balancer Configuration on ESXi Hosts.