Configurar el Load Balancer NSX Edge (EN)

Simple steps to use the NSX Edge load balancing service

Last Updated on 29th November 2021


The NSX Edge load balancing service spreads traffic from a specified public or private IP accross several defined VMs in your infrastructure.

This guide explains how to setup the NSX Edge Load Balancer



Interface access

In the vSphere interface menu, go to the Networking and Security dashboard.


On the left side, navigate to the NSX Edges section then click on the appliance you're setting up.


The Load Balancer tab shows the status of the service and its basic configuration.

Global Configuration

In the Global Configuration tab, click on Edit.


Enable options as needed:

  • Load Balancer: global service.
  • Acceleration: enabled, Load Balancer engine works at layer 4 (faster) vs layer 7 if disabled.
  • Logging: capture logs for the service (log level to be set as intended).

Click Save when ready.


The service is now active.

Service Monitor

A service monitor defines health check parameters for a particular type of network traffic. When you associate a service monitor with a pool, the pool members are monitored according to the service monitor parameters.

By default, three monitors are set up in the NSX Edge:

  • TCP
  • HTTP

In the Service Monitoring tab, click + Add.


Set a name and choose the type of monitor you are setting up. You can customize Interval, Timeout and Retries as well.

Click Add.


Your monitor is added to the list.

Application Profiles

An application profile defines the behavior of a particular type of network traffic. After configuring a profile, you associate the profile with a virtual server. The virtual server then processes traffic according to the values specified.

In the Application Profiles tab, click + Add.


Set the type and name of the profile.
Set the other options in regards to the type chosen.

Two settings of note:

  • Persistence allows session data tracking by cookie or source IP
  • Inserting X-Forwarded-For HTTP header keeps the originating IP of a client connecting through the load balancer

Click Add.


Your profile is now available.


A server pool manages load balancer distribution methods and has a service monitor attached to it for health check parameters.

In the Pools tab, click + Add.


Name the pool.

Select the Algorithm to apply:

  • IP-HASH selects a server based on a hash of the source IP address and the total weight of all the running servers
  • LEASTCONN distributes client requests to multiple servers based on the number of connections already on the server
  • ROUND_ROBIN uses each server in turn according to the weight assigned to it
  • URI hashes the left part of the URI and divides by the total weight of the running servers. The result designates which server receives the request. This ensures that a URI is always directed to the same server if no server goes up or down.
  • HTTPHEADER looks up the HTTP header in each HTTP request
  • URL looks up the argument in the query string of each HTTP GET request

Choose the Monitor to be used.

To make client IP addresses visible to the back-end servers, enable the Transparent option.


In the Members tab, + Add the servers that will be used for the pool.

Click Add.


Your pool is now ready for use.

Virtual Servers

A virtual server is an NSX Edge internal or uplink interface used to redirect traffic.

In the Virtual Servers tab, click + Add.


Set all fields as needed using the previously created objects or using previously existing ones.

You can manually enter the IP that will be redirected or click Select IP Address.


Select the vNIC and IP if you did.

Click OK then Add.


Your virtual server is now active.

Application Rules

An application rule is a server-side script using the HAProxy syntax to manipulate and manage traffic.

In the Application Rules tab, click + Add.


Name your rule and copy your script.

Click Add when done.


You can now apply the rule in the Advanced section of your Virtual Server.

The Load Balancer is now fully configured.


Go further

Join our community of users on

¿Le ha resultado útil esta guía?

Si lo desea, también puede enviarnos sus sugerencias para ayudarnos a mejorar nuestra documentación.

Imágenes, contenido, estructura...: ayúdenos a mejorar nuestra documentación con sus sugerencias.

No podemos tratar sus solicitudes de asistencia a través de este formulario. Para ello, haga clic en "Crear un tíquet" .

¡Gracias! Tendremos en cuenta su opinión.

Otras guías que podrían interesarle...

OVHcloud Community

¡Acceda al espacio de la OVHcloud Community! Resuelva sus dudas, busque información, publique contenido e interactúe con otros miembros de la comunidad.

Discuss with the OVHcloud community

A partir del 1 de enero de 2015, con arreglo a la Directiva 2006/112/CE modificada, los precios IVA incluido pueden variar según el país de residencia del cliente (por defecto, los precios con IVA incluyen el IVA español vigente).